]> granicus.if.org Git - clang/commitdiff
Give C11's __STDC_VERSION__ the final value.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 23 Dec 2011 17:00:41 +0000 (17:00 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 23 Dec 2011 17:00:41 +0000 (17:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147222 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/InitPreprocessor.cpp

index ad12e3dc3ccb2fa0c7335661f1490abb4d651534..c67eba40b59ea694b065fe75787cb8b4c78144e6 100644 (file)
@@ -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)