Re: preprocessor define for Xcode
Re: preprocessor define for Xcode
- Subject: Re: preprocessor define for Xcode
- From: Andreas Grosam <email@hidden>
- Date: Tue, 25 Oct 2005 11:20:01 +0200
On 25.10.2005, at 02:25, walterw wrote:
Is there an existing preprocessor define that I can use to
conditionally compile my C++ source based on the version of Xcode?
Xcode is the IDE, not the compiler. The C++ sources shall be
independent on the IDE.
Your sources may be conditioned regarding the compiler vendor and
version and the version of the system headers/libraries. However,
checking the compiler version may often too coarse grained or even
inappropriate - for instance, when you just want to know whether the
compiler creates code for little endian or big endian, or whether
wchars are available in the system library.
How you can determine all imaginable features of the system, compiler
and libraries is beyond this thread - but you may solve many of these
easily, when checking the macros defined in
ConditionalMacros.h, TargetConditionals.h and AvailabilityMacros.h.
If you have a more detailed question, please ask again.
Regards
Andreas
I'd like to prepare to move from 1.5 to 2.1 from the same sources and
make the final transition when the source compiles & runs with both.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden