Re: preprocessor definition identifying Mac OS X version
Re: preprocessor definition identifying Mac OS X version
- Subject: Re: preprocessor definition identifying Mac OS X version
- From: David Fang <email@hidden>
- Date: Mon, 12 Dec 2005 16:06:10 -0500 (EST)
> > Is there somewhere (presumably among the headers in /usr/include) a
> > preprocessor definition I can use to know what version of Mac OS X
> > some C source code is being compiled on ?
> >
> > Thanks,
> > Aurelien
Hi,
You could run 'uname -r -s' and save the result to a header file, like:
echo #define OS \"`uname -r -s`\" > os.h
There's always the autoconf option, but this is quick and simple.
David Fang
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden