diff options
author | Steve Naroff <snaroff@apple.com> | 2008-12-18 22:37:25 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-12-18 22:37:25 +0000 |
commit | 1ef21279b65f2380dc73bb27860c9b026a0f8350 (patch) | |
tree | 44237c3ae8c4f2fb959e3f7df2a76524ba3ea8db /clang/lib/Lex/Preprocessor.cpp | |
parent | 070de29fcf7550dd2c9406ba0d8212da7a5ac0c8 (diff) | |
download | bcm5719-llvm-1ef21279b65f2380dc73bb27860c9b026a0f8350.tar.gz bcm5719-llvm-1ef21279b65f2380dc73bb27860c9b026a0f8350.zip |
Don't define __STDC__ when compiling with -fms-extensions
llvm-svn: 61223
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 3fa76fa1615..7800fb51894 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -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) |