• 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 on SDK_NAME
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #if on SDK_NAME


  • Subject: Re: #if on SDK_NAME
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 14 Jul 2009 16:11:16 -0700

On Jul 14, 2009, at 3:45 PM, Eric Gorr wrote:

I spotted the environment variable SDK_NAME and saw that it was set to macosx10.5

Environment variables are not compiler preprocessor macros.

Xcode build settings are not environment variables.

If you want to test a value with an #if in code, it has to be defined in a header file (like AvailabilityMacros.h) or in your target's Preprocessor Macros build setting.

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


References: 
 >#if on SDK_NAME (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: #if on SDK_NAME
  • Next by Date: GDB problems and version
  • Previous by thread: Re: #if on SDK_NAME
  • Next by thread: Re: #if on SDK_NAME
  • Index(es):
    • Date
    • Thread