commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject svn commit: r351602 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/dso-dyld.c
Date Fri, 02 Dec 2005 05:29:19 GMT
Author: billbarker
Date: Thu Dec  1 21:28:57 2005
New Revision: 351602

URL: http://svn.apache.org/viewcvs?rev=351602&view=rev
Log:
Hide the defs in <stdbool.h> under Mac.

What brain-dead system includes junk like <stdbool.h> in the system header files?

Fix for Bug #37447


Modified:
    jakarta/commons/proper/daemon/trunk/src/native/unix/native/dso-dyld.c

Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/dso-dyld.c
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/dso-dyld.c?rev=351602&r1=351601&r2=351602&view=diff
==============================================================================
--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/dso-dyld.c (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/dso-dyld.c Thu Dec  1 21:28:57
2005
@@ -20,6 +20,14 @@
 
 #include <mach-o/dyld.h>
 
+#ifdef __bool_true_false_are_defined 
+/* We define these differently than stdbool.h, so ignore the defs there */
+#undef bool
+#undef true
+#undef false
+#endif
+
+
 /* Print an error message and abort all if a specified symbol wasn't found */
 static void nosymbol(const char *s) {
     log_error("Cannot find symbol '%s' in library",s);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message