diff options
author | Jim Jagielski <jim@apache.org> | 2019-03-14 23:18:22 +0000 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2019-03-14 23:18:22 +0000 |
commit | 32fe11efec3444c7f91414336d053059b26f8271 (patch) | |
tree | cc66fc77f073049d4d98f4ee5e8e4151a4c4f69e | |
parent | a46ec9441cdb96e81d105e45e66362aa46fd0ce9 (diff) | |
download | apr-32fe11efec3444c7f91414336d053059b26f8271.tar.gz |
Support canon pre-defined macro (gcc, cc and clang) for macOS which is now __APPLE__
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855558 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 e6211ec03..85b4631b6 100644 --- a/include/apr.h.in +++ b/include/apr.h.in @@ -215,6 +215,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" { |