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] |
Hi, This is not strictly speaking on topic, but I am not sure where to ask this question. Where can I get a list of the different predefines defined by different cross compiler versions of gcc ? For example __CYGWIN32__ is defined in the cygwin version of gcc. __unix__ under at least the linux version og gcc. On the avr various #defines are defined depending on the -mcu command line option. I want to use the same source file to compile code under different cross and native versions of gcc. There are slight differences in what routines and header files are available under the various host, target combinations. I want to do: #ifdef __CYGWIN32__ // Code which is specific to cygwin environment #endif #ifdef __AVR__ // Code which is specific to AVR #endif Regards Anton Erasmus ------ 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] |