diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
commit | 461a67fa15370a9ec88f8f8a240bf7c123bb2029 (patch) | |
tree | 6942083d7d56bba40ec790a453ca58ad3baf6832 /lib/Headers/stdbool.h | |
parent | 75c3240472ba6ac2669ee72ca67eb72d4e2851fc (diff) |
Vendor import of clang trunk r321017:vendor/clang/clang-trunk-r321017
Notes
Notes:
svn path=/vendor/clang/dist/; revision=326941
svn path=/vendor/clang/clang-trunk-r321017/; revision=326942; tag=vendor/clang/clang-trunk-r321017
Diffstat (limited to 'lib/Headers/stdbool.h')
-rw-r--r-- | lib/Headers/stdbool.h | 5 |
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 |