This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems with -Dalpha or -Di386


> (cpp replaces i386 by 1 on x86-machines)
> 
> Doesn't the standard say, defines for the compiler should be
> prepended by __ or something like that?

Yes.  Unfortunately every time the default namespace is cleaned up, the
list is flooded by problem reports of things failing in bizarre ways
becuase they insist on testing '#if i386' or '#ifdef i386'.

X and xmkmf are particularly notorious at this trick.

Workarounds include adding '-Ui386' or better yet '-ansi' to your
compile lines.

RJL


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]