]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
precaution to prevent double typedefs of the bool
authorDaniel Stenberg <daniel@haxx.se>
Wed, 15 Dec 2004 14:05:07 +0000 (14:05 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Dec 2004 14:05:07 +0000 (14:05 +0000)
lib/setup.h
src/setup.h

index 8530f0224d114b521152452db2434d7178c036d6..b893417a4bcba2d774f541476d40893e07f50e50 100644 (file)
@@ -66,7 +66,7 @@
 #define FALSE 0
 #endif
 
-#if !defined(__cplusplus) && !defined(__BEOS__)
+#if !defined(__cplusplus) && !defined(__BEOS__) && !defined(typedef_bool)
 typedef unsigned char bool;
 #define typedef_bool
 #endif
index 5c9b19cfaea2b184ad27ddf09ceed59f6989771d..288a01220be3c32a969c286cc55cc63713e934c1 100644 (file)
 #define FALSE 0
 #endif
 
-#ifndef __cplusplus
-#ifndef typedef_bool
+#if !defined(__cplusplus) && !defined(__BEOS__) && !defined(typedef_bool)
 typedef char bool;
-#endif
+#define typedef_bool
 #endif
 
 #ifndef OS