preprocessor/5177: Problem with gcc-3.0.2 CPP and #define

Richard Henderson rth@redhat.com
Sun Dec 23 18:56:00 GMT 2001


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~



More information about the Gcc-bugs mailing list