forked from OSchip/llvm-project
Do not define __STRICT_ANSI__ in clang-cl
llvm-svn: 212066
This commit is contained in:
parent
644d2eee59
commit
9be07e1acd
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue