Re: [AD] DJGPP compile error, solution |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
In reply to Igor Gnip (Igor Gnip <gnipi@xxxxxxxxxx>): >>i am using djgpp with gcc 2.95.2 and __unix__ symbol *IS* defined, >>so we have a problem ... > >I am also using DJGPP, gcc 2.95.2, and __unix__ symbol is defined on my >system, yet I have no problems compiling/using latest version (CVS). Obviously not the latest version... (doh!) this change was introduced by whoever reordered the file for MingW32 compilation. The solution is simple (see below). >>I partly solved it by putting #elif DJGPP before #elif __unix__ in >>src/i386/asmdefs.inc >> >>but it is not a permanent solution ... we should undefine __unix__ if >>DJGPP is defined This is how it used to be handled. As far as I can see, there is no problem with leaving it how it is. We just need to be sure that the test for DJGPP stays above that for __unix__. >>can someone apply this change to the CVS ? Here is a patch, for anyone with write access:
--- c:/home/cvs/allegro/src/i386/asmdefs.inc Sun Aug 27 02:21:30 2000 +++ d:/allegro/src/i386/asmdefs.inc Tue Aug 29 02:05:28 2000 @@ -26,12 +26,12 @@ #include "obj/msvc/asmdef.inc" #elif defined __WATCOMC__ #include "obj/watcom/asmdef.inc" +#elif defined DJGPP + #include "obj/djgpp/asmdef.inc" #elif defined __unix__ #include "obj/unix/asmdef.inc" #elif defined __BEOS__ #include "obj/beos/asmdef.inc" -#elif defined DJGPP - #include "obj/djgpp/asmdef.inc" #else #error unknown platform #endif
Sorry about the mixup, and bye for now, -- Laurence Withers, lwithers@xxxxxxxxxx http://www.lwithers.demon.co.uk/
Attachment:
signature.asc
Description: PGP signature
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |