aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-19 01:04:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-19 01:04:12 +0000
commit47226350c4f8094cf2ebe750351b2b3242709584 (patch)
tree1d79e6c470431f483f6e056ac9f6805be705e539 /lib/Frontend/InitPreprocessor.cpp
parent6ad6e95b451103feda0847965e5ab2ecfbd3fbd8 (diff)
Preprocessor: Don't define __STDC__ in -traditional-cpp mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--lib/Frontend/InitPreprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp
index d9a2ef66b9..3c5be253c7 100644
--- a/lib/Frontend/InitPreprocessor.cpp
+++ b/lib/Frontend/InitPreprocessor.cpp
@@ -253,7 +253,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
// These should all be defined in the preprocessor according to the
// current language configuration.
- if (!LangOpts.Microsoft)
+ if (!LangOpts.Microsoft && !LangOpts.TraditionalCPP)
Builder.defineMacro("__STDC__");
if (LangOpts.AsmPreprocessor)
Builder.defineMacro("__ASSEMBLER__");