• 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: detecting Leopard from gcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting Leopard from gcc


  • Subject: Re: detecting Leopard from gcc
  • From: Brad Oliver <email@hidden>
  • Date: Sun, 11 Nov 2007 08:47:43 -0800

On Nov 11, 2007, at 8:01 AM, email@hidden wrote:

So, how to detect Leopard?  Ideally, through an #ifdef?  I thought of
using an __APPLE_CC__ version check, but decided that Apple might
upgrade the compiler in Tiger as well (or already has, I didn't try
Xcode 2.5).  Is there a better way?


If you mean as part of your build process, try /usr/bin/sw_vers. See the man page for additional options.

--
Brad Oliver
email@hidden
_______________________________________________
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


  • Prev by Date: Re: Help! Xcode deleted 1.5 years of work
  • Next by Date: Re: Script to clean up NIBs for deployment
  • Previous by thread: Re: detecting Leopard from gcc
  • Next by thread: IB 3.0
  • Index(es):
    • Date
    • Thread