r242957 - [MSVC Compatibility] Use a better predicate for __BOOL_DEFINED
David Majnemer
david.majnemer at gmail.com
Wed Jul 22 15:36:26 PDT 2015
Author: majnemer
Date: Wed Jul 22 17:36:26 2015
New Revision: 242957
URL: http://llvm.org/viewvc/llvm-project?rev=242957&view=rev
Log:
[MSVC Compatibility] Use a better predicate for __BOOL_DEFINED
Instead of using CPlusPlus, use Bool. No functionality change is
intended, it just makes things a tad bit more clear.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=242957&r1=242956&r2=242957&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Jul 22 17:36:26 2015
@@ -643,9 +643,10 @@ protected:
if (Opts.CXXExceptions)
Builder.defineMacro("_CPPUNWIND");
+ }
+ if (Opts.Bool)
Builder.defineMacro("__BOOL_DEFINED");
- }
if (!Opts.CharIsSigned)
Builder.defineMacro("_CHAR_UNSIGNED");
More information about the cfe-commits
mailing list