I recently got a patch that used __DARWIN_C_LEVEL . I think the person providing it uses OS X 10.10.
I have OS 10.9, 10.8, and 10.5 for testing, but none of them defines it.
10.5
$ uname -a Darwin PowerMac.home.pvt 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh $ cpp -dM < /dev/null | grep -i darwin $
10.8 :
$ uname -a Darwin riemann.home.pvt 12.6.0 Darwin Kernel Version 12.6.0: Wed Mar 18 16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64 x86_64 $ cpp -dM </dev/null | grep -i darwin $
There are many hits for him, but this is either a copy of Apple's source code, or some kind of patch. Confer, "__ DARWIN_C_LEVEL": opensource.apple.com .
Apple uses it this way, but its not clear what they are aiming for:
#if __DARWIN_C_LEVEL > __DARWIN_C_ANSI #define _POSIX_ARG_MAX 4096 #define _POSIX_CHILD_MAX 25 ... #endif
What is __DARWIN_C_LEVEL and how to use it?
c c-preprocessor posix macos
jww
source share