From 3c6982b911ba186d6172be248652295dadd9d659 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 23 Dec 2011 17:00:41 +0000 Subject: [PATCH] Give C11's __STDC_VERSION__ the final value. llvm-svn: 147222 --- clang/lib/Frontend/InitPreprocessor.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index ad12e3dc3ccb..c67eba40b59e 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -267,11 +267,8 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI, Builder.defineMacro("__STDC_HOSTED__"); if (!LangOpts.CPlusPlus) { - // FIXME: C1x doesn't have a defined version number yet, so pick something - // that is the minimum possible according to their placeholder scheme - // 201ymmL. if (LangOpts.C11) - Builder.defineMacro("__STDC_VERSION__", "201001L"); + Builder.defineMacro("__STDC_VERSION__", "201112L"); else if (LangOpts.C99) Builder.defineMacro("__STDC_VERSION__", "199901L"); else if (!LangOpts.GNUMode && LangOpts.Digraphs)