X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com Message-ID: <4828AEEF.1060800@iki.fi> Date: Mon, 12 May 2008 23:56:15 +0300 From: Andris Pavenis User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: Probably a bug in gcc 4.3.0 References: <200805111840 DOT 20870 DOT juan DOT guerrero AT gmx DOT de> In-Reply-To: <200805111840.20870.juan.guerrero@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Juan Manuel Guerrero wrote: > There is probably a bug in the gcc430b.zip file. I have not tried to build the > binaries from the sources so I am not sure if it is only an error produced during > the packing of the zip file or if the build process of gcc 4.3.0 is brocken. > > The following code always fails if compiled with gcc 4.3.0: > > #define TEST_LIBSUPP 1 > #if TEST_LIBSUPP > # if (__DJGPP__ == 2) && (__DJGPP_MINOR__ < 4) > # include > # else > # include "../include/libsupp.h" > # endif > #else > # include > #endif > #include > #include > #if (__DJGPP__ == 2) && (__DJGPP_MINOR__ >= 4) > # include > #endif > [snip] The safe way is to include sys/version.h directly (it is no more included automatically): #include I was never happy with the old solution, but it was best I could then figure out to get __DJGPP*__ macros in without including anything directly. With GCC-4.3.0 I have seen situations when the old solution does not find sys/version.h at all (should not happen with normal use of it though). Andris PS. You may see the predefined macros by 'gcc -E -dD -x language /dev/null', where language is either c or c++.