• 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: Chris Espinosa <email@hidden>
  • Date: Thu, 1 Nov 2007 14:10:39 -0700


On Nov 1, 2007, at 1:33 PM, Eric Gorr wrote:

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.

#if MAC_OS_X_VERSION_MAX_ALLOWED < 1050 #error Not building against 10.5 headers #else #error Now I can use 10.5 APIs #endif

Chris
_______________________________________________
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


  • Follow-Ups:
    • Thanks for all the help!
      • From: Rick Mann <email@hidden>
References: 
 >#if for current SDK...? (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: Xcode 2.5 can't #include_next <stdarg.h>
  • Next by Date: Re: Xcode 2.5 can't #include_next <stdarg.h>
  • Previous by thread: Re: #if for current SDK...?
  • Next by thread: Thanks for all the help!
  • Index(es):
    • Date
    • Thread