Subject: identify darwin/OS X in C files
To: None <tech-pkg@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 06/07/2006 16:07:06
Hello,
I need to add a cpp test for OS X in a C source file. What is the proper way
of testing for this ?
I used "defined(__MACH__) && defined(__APPLE__)" and it works on OS X 10.4,
but maybe there's something better ...

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--