]> granicus.if.org Git - clang/commitdiff
[MSVC Compatibility] Use a better predicate for __BOOL_DEFINED
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 22 Jul 2015 22:36:26 +0000 (22:36 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 22 Jul 2015 22:36:26 +0000 (22:36 +0000)
Instead of using CPlusPlus, use Bool.  No functionality change is
intended, it just makes things a tad bit more clear.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242957 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 62cc72212bc7609a9b3b62f9365271ad3adcef0a..88c2e760f2aa8917c44ab2e33c6a1f027849365c 100644 (file)
@@ -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");