• 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: compiler constants?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler constants?


  • Subject: Re: compiler constants?
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 26 Nov 2004 22:57:38 -0800

On Nov 26, 2004, at 10:30 PM, Travis Heppe wrote:

Is there a constant and/or intrinsic you can use to identify the os version currently targetted? In particular, I'd like to be able to ifdef out my CGGL (quartz extreme) support if <10.3

#include <AvailabilityMacros.h>

#if MAC_OS_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3
    // CGL support code here
#else
   // non-CGL support code here
#endif

See http://developer.apple.com/releasenotes/DeveloperTools/ AvailabilityMacros.html

and the relevant Xcode help. You can set the min and max OS versions in the project (not the target) Get Info pane.

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: 
 >compiler constants? (From: Travis Heppe <email@hidden>)

  • Prev by Date: compiler constants?
  • Next by Date: XCode compile options
  • Previous by thread: compiler constants?
  • Next by thread: XCode compile options
  • Index(es):
    • Date
    • Thread