Preprocessor: Don't define __STDC__ in -traditional-cpp mode.

llvm-svn: 127933
This commit is contained in:
Daniel Dunbar
2011-03-19 01:04:12 +00:00
parent a872326929
commit 5366ff1865

View File

@@ -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__");