You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ji...@apache.org on 2019/03/14 23:18:44 UTC

svn commit: r1855560 - /apr/apr/branches/1.6.x/include/apr.h.in

Author: jim
Date: Thu Mar 14 23:18:44 2019
New Revision: 1855560

URL: http://svn.apache.org/viewvc?rev=1855560&view=rev
Log:
Support canon pre-defined macro (gcc, cc and clang) for macOS which is now __APPLE__

Modified:
    apr/apr/branches/1.6.x/include/apr.h.in

Modified: apr/apr/branches/1.6.x/include/apr.h.in
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.6.x/include/apr.h.in?rev=1855560&r1=1855559&r2=1855560&view=diff
==============================================================================
--- apr/apr/branches/1.6.x/include/apr.h.in (original)
+++ apr/apr/branches/1.6.x/include/apr.h.in Thu Mar 14 23:18:44 2019
@@ -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" {