mirror of
https://github.com/curl/curl.git
synced 2026-07-24 02:07:17 +03:00
precaution to prevent double typedefs of the bool
This commit is contained in:
parent
b34d161703
commit
95b84adb9b
2 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue