On Sat, 13 Oct 2018, Sijmen J. Mulder wrote:
> >Description:
> When compiling the following code:
>
> #include <stdint.h>
> int main(void) { return 0; }
>
> with -fms-extensions:
>
> cc -fms-extensions test.c
>
> the following error is printed:
>
> In file included from test.c:1:
> In file included from /usr/include/stdint.h:23:
> /usr/include/machine/_types.h:133:15: error: cannot
> combine with previous 'int' declaration specifier
> typedef int __wchar_t;
> ^
> 1 error generated.
> >How-To-Repeat:
> As described in Description
> >Fix:
> Workaround is not to use -fms-extensions.
To me, your workaround sounds ideal: I doubt any of the core developers
are interested in supporting that option and we certainly don't want to
add a twisty maze of #if conditionals to support something unused,
untested, and likely to rot.
If someone was to work out a diff that added support without adding
clutter to the headers it's plausible it would be accepted, but it would
have to be _really_ simple.
...or just go with your workaround. ;-)
Philip Guenther