This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Which macro to use when testing for target arhitecture?


gcc typically defines at least 3 macros for build target architecture; e.g. for m68k-coff-gcc, I have

#define __mc68000__ 1
#define __mc68000 1
#define mc68000 1

which one of these is the most appropriate to use when testing target type within C code (using #ifdef or similar)?

--
- Toralf




------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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