From owner-freebsd-toolchain@FreeBSD.ORG Tue Mar 18 15:38:44 2014 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B262480 for ; Tue, 18 Mar 2014 15:38:44 +0000 (UTC) Received: from mailrelay008.isp.belgacom.be (mailrelay008.isp.belgacom.be [195.238.6.174]) by mx1.freebsd.org (Postfix) with ESMTP id CDCF5221 for ; Tue, 18 Mar 2014 15:38:43 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlkIAHFnKFNR8YKK/2dsb2JhbABagwaBBqt0AZdbF3SCZhxfNCqINAGfYrFrjn+EIgSYRYpah1eDLjw Received: from 138.130-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.130.138]) by relay.skynet.be with ESMTP; 18 Mar 2014 16:38:35 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.8/8.14.8) with ESMTP id s2IFcYiA032643 for ; Tue, 18 Mar 2014 16:38:35 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Tue, 18 Mar 2014 16:38:34 +0100 From: Tijl Coosemans 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2014 15:38:44 -0000 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 % 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?