UNIVERSAL_INTERFACES_VERSION equivalent on OSX.
UNIVERSAL_INTERFACES_VERSION equivalent on OSX.
- Subject: UNIVERSAL_INTERFACES_VERSION equivalent on OSX.
- From: Miklós Fazekas <email@hidden>
- Date: Wed, 3 Aug 2005 15:59:30 +0200
Is there any preprocessor symbol i can use for determining the
version of header i'm compiling against?!
For example the CR field in the MachineInformationPowerPC changed to
CRRegister in the 10.4 and later SDK-s.
I'd like my code compiled on both 10.4 and 10.3 SDK's.
I'd like to write a code like:
#if OSX_HEADER_VERSION > MAX_OSX_VERSION_10_4
cr = ioInformation->machineState->CRRegister;
#else
cr = ioInformation->machineState->CR;
#endif
Having no better idea i'm using
defined(DEPRECATED_IN_MAC_OS_X_VERSION_10_4_AND_LATER)
for testing if my code compiles on 10.4 or later headers or not.
Is there a preprocessor define for such purpose, or shall i file a
bug about that?!
Regards,
Miklós
_______________________________________________
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