diff options
author | jim <jim@13f79535-47bb-0310-9956-ffa450edef68> | 2019-03-14 23:18:44 +0000 |
---|---|---|
committer | jim <jim@13f79535-47bb-0310-9956-ffa450edef68> | 2019-03-14 23:18:44 +0000 |
commit | c900518ed81e70f8025f3eea67bff286fe3cb7a2 (patch) | |
tree | 8073fec23f94940b411b7a577d75e751e5b3b84e | |
parent | aee99f0a657ea0f5cb28c667538b4304ad5a5887 (diff) | |
download | libapr-c900518ed81e70f8025f3eea67bff286fe3cb7a2.tar.gz |
Support canon pre-defined macro (gcc, cc and clang) for macOS which is now __APPLE__
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1855560 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | include/apr.h.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/apr.h.in b/include/apr.h.in index 4d188853b..e1932fcfd 100644 --- a/include/apr.h.in +++ b/include/apr.h.in @@ -197,6 +197,13 @@ #endif #endif +/* __APPLE__ is now the official pre-defined macro for macOS */ +#ifdef __APPLE__ +#undef DARWIN +#undef DARWIN_10 +#define DARWIN +#define DARWIN_10 +#endif /* __APPLE__ */ #ifdef __cplusplus extern "C" { |