Date: Tue, 18 Mar 2014 16:38:34 +0100 From: Tijl Coosemans <tijl@FreeBSD.org> To: toolchain@FreeBSD.org Subject: clang 3.4 -fms-extensions __wchar_t conflicts with our __wchar_t Message-ID: <20140318163834.6a9cf12b@kalimero.tijl.coosemans.org>
next in thread | raw e-mail | index | archive | help
Hi,
With -fms-extensions clang 3.4 seems to define a built-in type named
__wchar_t. This conflicts with __wchar_t in /usr/include/machine/_types.h
% cat test.c
#include <sys/types.h>
% cc -c test.c -fms-extensions
In file included from test.c:1:
In file included from /usr/include/sys/types.h:44:
In file included from /usr/include/machine/endian.h:6:
In file included from /usr/include/x86/endian.h:37:
In file included from /usr/include/sys/_types.h:33:
In file included from /usr/include/machine/_types.h:6:
/usr/include/x86/_types.h:145:14: error: cannot combine with previous 'int'
declaration specifier
typedef int __wchar_t;
^
1 error generated.
What is the best way to resolve this? Maybe rename the FreeBSD __wchar_t
to ___wchar_t?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140318163834.6a9cf12b>
