]> granicus.if.org Git - clang/commit
In stdbool.h, define bool, false, true only in gnu++98
authorStephan Bergmann <sbergman@redhat.com>
Fri, 8 Dec 2017 08:28:08 +0000 (08:28 +0000)
committerStephan Bergmann <sbergman@redhat.com>
Fri, 8 Dec 2017 08:28:08 +0000 (08:28 +0000)
commit668d6ffa85130abe2e7590b8f40220d34d58299b
treec2468333139be62d858dc728ffe21b78ec43dcc4
parentce59979560afc7f4cb497bf4b93146e56e607d65
In stdbool.h, define bool, false, true only in gnu++98

GCC has meanwhile corrected that with the similar
<https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=216679> "C++11
explicitly forbids macros for bool, true and false."

Differential Revision: https://reviews.llvm.org/D40167

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320135 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/stdbool.h
test/Headers/stdbool.cpp