Displaying 2 results from an estimated 2 matches for "initializestandardpredefined".
2017 May 11
3
problem (and fix) with -fms-extensions
...rc/gnu/llvm/tools/clang/lib/Frontend/InitPreprocessor.cpp,v
retrieving revision 1.1.1.4
diff -u -p -r1.1.1.4 InitPreprocessor.cpp
--- lib/Frontend/InitPreprocessor.cpp 14 Mar 2017 08:07:56 -0000 1.1.1.4
+++ lib/Frontend/InitPreprocessor.cpp 11 May 2017 17:54:41 -0000
@@ -366,6 +366,8 @@ static void InitializeStandardPredefined
else
Builder.defineMacro("__STDC_HOSTED__");
+ if (LangOpts.MicrosoftMode)
+ Builder.defineMacro("__ms_extensions__", 1);
if (!LangOpts.CPlusPlus) {
if (LangOpts.C11)
Builder.defineMacro("__STDC_VERSION__", "201112L");
-----------...
2017 May 12
2
problem (and fix) with -fms-extensions
...sor.cpp,v
> > retrieving revision 1.1.1.4
> > diff -u -p -r1.1.1.4 InitPreprocessor.cpp
> > --- lib/Frontend/InitPreprocessor.cpp 14 Mar 2017 08:07:56 -0000 1.1.1.4
> > +++ lib/Frontend/InitPreprocessor.cpp 11 May 2017 17:54:41 -0000
> > @@ -366,6 +366,8 @@ static void InitializeStandardPredefined
> > else
> > Builder.defineMacro("__STDC_HOSTED__");
> >
> > + if (LangOpts.MicrosoftMode)
> > + Builder.defineMacro("__ms_extensions__", 1);
> > if (!LangOpts.CPlusPlus) {
> > if (LangOpts.C11)
> > Builder.d...