Skip to content
Snippets Groups Projects
Commit 95b84adb authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

precaution to prevent double typedefs of the bool

parent b34d1617
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -69,10 +69,9 @@
#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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment