Re: #if for current SDK...?
Re: #if for current SDK...?
- Subject: Re: #if for current SDK...?
- From: Jens Ayton <email@hidden>
- Date: Thu, 1 Nov 2007 22:04:58 +0100
Eric Gorr:
At the moment, I am building against the 10.4 SDK and thought it
would be a good idea to place things like:
#if <am I using the 10.5 SDK>
#error <a way the code can now be improved>
#endif
in the code so I can have the compiler keep track of various spots
in the code which can be improved when I start using the 10.5 SDK.
But, I am not sure what '<am I using the 10.5 SDK>' should be.
Now I've used the -dM function to see if I could find anything
obvious, but nothing is jumping out at me.
Anyone know the answer (assuming it is possible)?
To check for the 10.5 SDK:
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
To check the minimum supported version ("Mac OS X deployment target"
build setting):
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
--
Jens Ayton
Sed quis custodiet ipsos custodes?
_______________________________________________
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