Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2015 20:34:07 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Benjamin Kaduk <bjkfbsd@gmail.com>, svn-src-projects@freebsd.org, "src-committers@freebsd.org" <src-committers@freebsd.org>, Alexander Kabaev <kabaev@gmail.com>
Subject:   Re: svn commit: r277803 - projects/clang360-import/lib/clang/include
Message-ID:  <20150128203407.23eadf62@kalimero.tijl.coosemans.org>
In-Reply-To: <0129A21C-D178-49D9-9729-A94D30AACE48@FreeBSD.org>
References:  <201501271925.t0RJPem3010417@svn.freebsd.org> <CAJ5_RoAvww7xFsSTBMPDThYsbpVbxOs11nWE=eEXpJRFx_kyww@mail.gmail.com> <20150127191134.4fe3a17f@kan> <F7477A20-BC56-4CF9-8520-77F7BFD4B72E@FreeBSD.org> <20150128091457.1b0ea3a7@kan> <2DA71591-EE38-42F9-983F-8E711CA36A75@FreeBSD.org> <20150128133946.7243a0fc@kan> <20150128202422.52016f68@kalimero.tijl.coosemans.org> <0129A21C-D178-49D9-9729-A94D30AACE48@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 Jan 2015 20:28:06 +0100 Dimitry Andric <dim@FreeBSD.org> wrote:
> On 28 Jan 2015, at 20:24, Tijl Coosemans <tijl@freebsd.org> wrote:
>> That said, this commit breaks compiling with "cc -ffreestanding
>> -nostdinc -I`cc -print-file-name=include`" because clang versions of
>> std*.h headers aren't installed on FreeBSD which is yet another
>> thing that FreeBSD does differently.  Maybe now is a good time to fix
>> that as well?
> 
> We never installed any internal clang headers that were named the same
> as our own headers, because they used to cause conflicts.  I will have
> a look if those conflicts have now been resolved, then we could install
> them for use in freestanding environments.

You may need to add something like this to some headers:

#if __STDC_HOSTED__ && __has_include_next(<stddef.h>)
#include_next <stddef.h>
#else
....
#endif

The stdint.h header already seems to have that.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150128203407.23eadf62>