aboutsummaryrefslogtreecommitdiff
path: root/lib/Headers/stdbool.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Headers/stdbool.h')
-rw-r--r--lib/Headers/stdbool.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Headers/stdbool.h b/lib/Headers/stdbool.h
index 0467893f3403..5cb66b55d02a 100644
--- a/lib/Headers/stdbool.h
+++ b/lib/Headers/stdbool.h
@@ -32,12 +32,15 @@
#define true 1
#define false 0
#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
-/* Define _Bool, bool, false, true as a GNU extension. */
+/* Define _Bool as a GNU extension. */
#define _Bool bool
+#if __cplusplus < 201103L
+/* For C++98, define bool, false, true as a GNU extension. */
#define bool bool
#define false false
#define true true
#endif
+#endif
#define __bool_true_false_are_defined 1