• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: #if for current SDK...?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >#if for current SDK...? (From: Eric Gorr <email@hidden>)

  • Prev by Date: #if for current SDK...?
  • Next by Date: Re: Xcode 3 unresponsive after Save or opening Project Settings?
  • Previous by thread: #if for current SDK...?
  • Next by thread: Re: #if for current SDK...?
  • Index(es):
    • Date
    • Thread