Do not define __STRICT_ANSI__ in clang-cl

llvm-svn: 212066
This commit is contained in:
Ehsan Akhgari 2014-06-30 20:36:33 +00:00
parent 644d2eee59
commit 9be07e1acd
2 changed files with 2 additions and 1 deletions

View File

@ -478,7 +478,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
// Initialize language-specific preprocessor defines.
// Standard conforming mode?
if (!LangOpts.GNUMode)
if (!LangOpts.GNUMode && !LangOpts.MSVCCompat)
Builder.defineMacro("__STRICT_ANSI__");
if (LangOpts.CPlusPlus11)

View File

@ -9,6 +9,7 @@
// CHECK-MS: #define _M_IX86_FP
// CHECK-MS: #define _WIN32 1
// CHECK-MS-NOT: #define __GNUC__
// CHECK-MS-NOT: #define __STRICT_ANSI__
//
// RUN: %clang_cc1 %s -E -dM -triple i686-pc-win32 -fms-compatibility \
// RUN: -o - | FileCheck %s --check-prefix=CHECK-MS-STDINT