svn commit: r277803 - projects/clang360-import/lib/clang/include

Tijl Coosemans tijl at FreeBSD.org
Wed Jan 28 19:34:11 UTC 2015


On Wed, 28 Jan 2015 20:28:06 +0100 Dimitry Andric <dim at FreeBSD.org> wrote:
> On 28 Jan 2015, at 20:24, Tijl Coosemans <tijl at 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.


More information about the svn-src-projects mailing list