aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-12-18 22:37:25 +0000
committerSteve Naroff <snaroff@apple.com>2008-12-18 22:37:25 +0000
commit7e0fbb2561fadf8c1fce5fdb588f5db2f3cae51f (patch)
tree31d3647d62309559b8ea012bc9d1a8e5935f01f7 /lib/Lex/Preprocessor.cpp
parent264c8ed7edf26031c6854b6b92ab0d7774c13579 (diff)
Don't define __STDC__ when compiling with -fms-extensions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r--lib/Lex/Preprocessor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index 3fa76fa161..7800fb5189 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/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)