Subject: identify darwin/OS X in C files
To: None <>
From: Manuel Bouyer <>
List: tech-pkg
Date: 06/07/2006 16:07:06
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 <>
     NetBSD: 26 ans d'experience feront toujours la difference