On 2012-03-14 19:36, Rene wrote:
I am checking if I could get polarssl compiled with dmc.
And to see if it would work with fossil compiled with dmc (and if
that still worked!).

The polarssl library compiling wasn't much of a problem. Mainly
creating a makefile for gnu make and
in 2 places I had to change
    #ifdef _WIN32
in
    #if defined(_WIN32) || defined(__DMC__)
in order to get vsnprintf and family recognized.


Compiling fossil
I ran  into problems with winhttp.c because it uses
SERVICE_DESCRIPTION and dmc uses an old win32/winsvc.h
I copied winsvc.h from mingw and that worked.

Now I'm trying to compile sqlite3.c and ran into
{ "AreFileApisANSI", (SYSCALL)AreFileApisANSI, 0 },
                                                       ^
..\src\sqlite3.c(32280) : Error: constant initializer expected
      pMap = osMapViewOfFile(hMap, FILE_MAP_WRITE | FILE_MAP_READ,
                            ^
              ..\src\sqlite3.c(34886) : Error: ')' expected

And I'm totally lost. Anyone a clue?

Thanks

if I change the 2 offending lines like so:

#define osAreFileApisANSI ((BOOL(WINAPI*)(VOID))aSyscall[0].pCurrent)
#define osAreFileApisANSI ((BOOL(WINAPI*)(void))aSyscall[0].pCurrent)
#define osMapViewOfFile ((LPVOID(WINAPI*)(HANDLE,DWORD,DWORD,DWORD,SIZE_T))aSyscall[47].pCurrent) #define osMapViewOfFile ((LPVOID(WINAPI*)(HANDLE,DWORD,DWORD,DWORD,DWORD))aSyscall[47].pCurrent)

then sqlite3.c compiles.
I'm do not understand why that works!
--
Rene
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to