X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..224c70764cab4e0e39a26aaf3ad3016552f62f55:/include/standards.h?ds=sidebyside diff --git a/include/standards.h b/include/standards.h index 322fd19..0c18101 100644 --- a/include/standards.h +++ b/include/standards.h @@ -27,11 +27,13 @@ #ifndef _STANDARDS_H #define _STANDARDS_H -#ifdef _POSIX_C_SOURCE +#include + +#if defined(_POSIX_C_SOURCE) && !defined(_DARWIN_C_SOURCE) # ifndef __STRICT_ANSI__ # define __STRICT_ANSI__ # endif # undef __STRICT_BSD__ -#endif /* _POSIX_C_SOURCE */ +#endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */ #endif /* _STANDARDS_H */