svn commit: r287206 - head/sys/sys

Pedro Giffuni pfg at FreeBSD.org
Thu Aug 27 21:34:18 UTC 2015



On 08/27/15 16:15, Pedro Giffuni wrote:
> ...

> ...
>
>> The original change to cdefs.h appears to be plain wrong.
>>
>
> Not really, it may appear some day.
>


I take that back, there is something wrong:

#ifndef __has_feature
#define __has_feature(x) (0)
#endif

#if __has_attribute(alloc_size)
#error Has attribute
#endif

$ cc -E attr-text.c
# 1 "attr-text.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "attr-text.c"
attr-text.c:5:20: error: missing binary operator before token "("

$ cc --version
cc (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Pedro.


More information about the svn-src-all mailing list