<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On 18 May 2017 9:59 am, "Marc Espie via cfe-dev" <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">On Thu, May 18, 2017 at 09:49:17AM -0700, Reid Kleckner wrote:<br>
>    So, we actually have documentation on this, and __wchar_t is the<br>
>    example use case:<br>
</div>>    [3]<a href="https://clang.llvm.org/docs/LanguageExtensions.html#is-identifier" rel="noreferrer" target="_blank">https://clang.llvm.org/<wbr>docs/LanguageExtensions.html#<wbr>is-identifier</a><br>
<div class="quoted-text">>    Please just use it, it works.<br>
>    I do not want to define _MSC_EXTENSIONS more than we already do, and I<br>
>    don't think we should add more pre-defined macros when we already have<br>
>    these nicely factored feature test macros that don't pollute the global<br>
>    namespace. The "simple solution" is not a good solution.<br>
>    I believe our use of _MSC_EXTENSIONS is wrong anyway. It is controlled<br>
>    by MSVC's /Ze and /Za flags, which do not relate to our -fms-extensions<br>
>    flag.<br>
><br>
</div>How about you actually read my problem ?<br>
<br>
this is not what I'm trying to solve.<br>
<br>
The error I get is:<br>
<div class="quoted-text">/usr/include/machine/_types.h:<wbr>132:15: error: cannot combine with previous 'int'<br>
declaration specifier<br>
      typedef int                     __wchar_t;<br>
<br>
<br>
</div>and it's *because* -fms-extensions does define __wchar_t.<br>
<br>
A solution is nowhere as short as the fragment you quote from the documentation.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">We reserve the right to provide __wchar_t in modes other than -fms-extensions in future, or to sometimes not provide it in that mode, so using <span style="font-family:sans-serif">_MSC_EXTENSIONS for this is simply a mistake.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">If you want to detect whether we provide a builtin __wchar_t, __is_identifier is the mechanism we provide for that. It doesn't make sense for us to add another.</span></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="elided-text">______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</div></blockquote></div><br></div></div></div>