serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1714208 - /serf/trunk/serf_private.h
Date Fri, 13 Nov 2015 14:00:27 GMT
Author: rhuijben
Date: Fri Nov 13 14:00:27 2015
New Revision: 1714208

URL: http://svn.apache.org/viewvc?rev=1714208&view=rev
Log:
* serf_private.h
  (bool): Define in a different way to avoid breaking compilation in case
    _Bool is defined, but bool isn't.

Modified:
    serf/trunk/serf_private.h

Modified: serf/trunk/serf_private.h
URL: http://svn.apache.org/viewvc/serf/trunk/serf_private.h?rev=1714208&r1=1714207&r2=1714208&view=diff
==============================================================================
--- serf/trunk/serf_private.h (original)
+++ serf/trunk/serf_private.h Fri Nov 13 14:00:27 2015
@@ -34,14 +34,14 @@
 /* bool defined some other way (C99 compatible) */
 #else
 /* Do something C99 like ourself */
-#ifndef _Bool
-typedef int _Bool;
-#endif
+typedef int serf__bool_t; /* Not _Bool */
 #define __bool_true_false_are_defined 1
-#define bool _Bool
+#define bool serf__bool_t
+#ifndef true
 #define false 0
 #define true 1
 #endif
+#endif
 
  /* Define a MAX macro if we don't already have one */
 #ifndef MAX



Mime
View raw message