This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/5177: Problem with gcc-3.0.2 CPP and #define
- From: Richard Henderson <rth at redhat dot com>
- To: neil at gcc dot gnu dot org, cmadams at hiwaay dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Sun, 23 Dec 2001 14:01:46 -0800
- Subject: Re: preprocessor/5177: Problem with gcc-3.0.2 CPP and #define
- References: <20011223161812.8384.qmail@sources.redhat.com>
On Sun, Dec 23, 2001 at 04:18:12PM -0000, neil@gcc.gnu.org wrote:
> It is a bug in your package that it trips over the macro.
No, it's not his fault -- <sys/stat.h> contains something like
#if _DECC
#pragma prefix symbols with "_F64"
#else
#define stat(a,b,c) _F64stat(a,b,c)
#endif
Basically, we'd have to do some extremely ugly fixincludery to
get this transformed to something that works properly wth gcc.
r~