Re: [Opentnl-general] Cygwin & mingw32 fixes
Brought to you by:
mark_frohnmayer,
s_alanet
From: Stephane V. <sv...@fr...> - 2004-04-22 04:52:46
|
Hi, > Strangely GCC doesn't give this error on either linux or OS X. Perhaps= =20 > it's a difference in the cdecl syntax? You got the point. In fact for both __CYGWIN__ and __MINGW32__ the FN_CDE= CL constant must be defined to nothing like under Linux for instance. There are also some missing constants under mingw32 so I added them direc= tly in tnlTypes.h in a test to check if __MINGW32__ is defined. Now I got everything to compile fine with standard gcc cygwin and with gcc -mno-cygwin. For pure cygwin, TNL_OS is defined to linux whereas for mingw it is defin= ed to win32. Of course, for mingw compile, I had to add "-mno-cygwin" to each Makefile= (or makefile in libtomcrypt) and I had to add -lwsock32 to the Makefiles in t= he master, masterclient and test subdirectories. No changes to Makefiles where required for cygwin, just the new tnlTypes.= h. Here you will find (attached) my tnlType.h file that I modified from yest= erday's CVS. Could any devel commit this patch if it proves itself to be ok ? I dunno how to integrate the mingw32 required changes to Makefiles though= .. I should say I haven't thought about it. Is anyone planning to use a conf= igure script ? Regards, Stephane |