site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com
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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com