summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2019-03-14 23:18:44 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2019-03-14 23:18:44 +0000
commitc900518ed81e70f8025f3eea67bff286fe3cb7a2 (patch)
tree8073fec23f94940b411b7a577d75e751e5b3b84e
parentaee99f0a657ea0f5cb28c667538b4304ad5a5887 (diff)
downloadlibapr-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.in7
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" {