Weirdly I had to undo this locally for compiling against VS2010 headers! It
seems r113126 introduced it to "Tell the VS headers that char16_t and
char32_t are keywords, so yvals.h doesn't try to define them as typedefs."

I can only assume something else has changed in the meantime...?

- Will.

On 25 August 2012 17:32, João Matos <[email protected]> wrote:

> This fixed some parsing problems with VS 2012 headers for me.
>
> Anyone remember why this was added in the first place? I don't have VS
> 2010 installed, so I can't test if it breaks something there.
>
>
> On Sat, Aug 25, 2012 at 6:27 AM, Francois Pichet <[email protected]>wrote:
>
>> Author: fpichet
>> Date: Sat Aug 25 00:27:04 2012
>> New Revision: 162641
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=162641&view=rev
>> Log:
>> _HAS_CHAR16_T_LANGUAGE_SUPPORT is not predefined MSVC macro.
>>
>> Modified:
>>     cfe/trunk/lib/Frontend/InitPreprocessor.cpp
>>
>> Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=162641&r1=162640&r2=162641&view=diff
>>
>> ==============================================================================
>> --- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
>> +++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Sat Aug 25 00:27:04 2012
>> @@ -429,10 +429,6 @@
>>        Builder.append("#define __identifier(x) x");
>>        Builder.append("class type_info;");
>>      }
>> -
>> -    if (LangOpts.CPlusPlus0x) {
>> -      Builder.defineMacro("_HAS_CHAR16_T_LANGUAGE_SUPPORT", "1");
>> -    }
>>    }
>>
>>    if (LangOpts.Optimize)
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> [email protected]
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>
>
>
> --
> João Matos
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to