diff options
Diffstat (limited to 'gl/stdbool.in.h')
-rw-r--r-- | gl/stdbool.in.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gl/stdbool.in.h b/gl/stdbool.in.h index 2fa46724..36f26560 100644 --- a/gl/stdbool.in.h +++ b/gl/stdbool.in.h | |||
@@ -59,8 +59,10 @@ | |||
59 | /* 7.16. Boolean type and values */ | 59 | /* 7.16. Boolean type and values */ |
60 | 60 | ||
61 | #ifdef __cplusplus | 61 | #ifdef __cplusplus |
62 | # define _Bool bool | 62 | # if !defined _MSC_VER |
63 | # define bool bool | 63 | # define _Bool bool |
64 | # define bool bool | ||
65 | # endif | ||
64 | #else | 66 | #else |
65 | # if !defined __GNUC__ | 67 | # if !defined __GNUC__ |
66 | /* If @HAVE__BOOL@: | 68 | /* If @HAVE__BOOL@: |
@@ -103,8 +105,10 @@ typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool; | |||
103 | 105 | ||
104 | /* The other macros must be usable in preprocessor directives. */ | 106 | /* The other macros must be usable in preprocessor directives. */ |
105 | #ifdef __cplusplus | 107 | #ifdef __cplusplus |
106 | # define false false | 108 | # if !defined _MSC_VER |
107 | # define true true | 109 | # define false false |
110 | # define true true | ||
111 | # endif | ||
108 | #else | 112 | #else |
109 | # define false 0 | 113 | # define false 0 |
110 | # define true 1 | 114 | # define true 1 |