Don't define __STDC__ when compiling with -fms-extensions

llvm-svn: 61223
This commit is contained in:
Steve Naroff 2008-12-18 22:37:25 +00:00
parent 070de29fcf
commit 1ef21279b6
1 changed files with 2 additions and 1 deletions

View File

@ -430,7 +430,8 @@ static void InitializePredefinedMacros(Preprocessor &PP,
// and __DATE__ etc.
// These should all be defined in the preprocessor according to the
// current language configuration.
DefineBuiltinMacro(Buf, "__STDC__=1");
if (!PP.getLangOptions().Microsoft)
DefineBuiltinMacro(Buf, "__STDC__=1");
if (PP.getLangOptions().AsmPreprocessor)
DefineBuiltinMacro(Buf, "__ASSEMBLER__=1");
if (PP.getLangOptions().C99 && !PP.getLangOptions().CPlusPlus)