Re: detecting Leopard from gcc
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