>>> On 04.10.15 at 21:24, <julien.gr...@citrix.com> wrote:
> The keyword typeof is not portable:
> 
> /usr/src/freebsd/sys/xen/hypervisor.h:93:2: error: implicit declaration
> of function 'typeof' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]

Actually, it's worse than that - typeof() is a gcc extension, and we
shouldn't use extensions in public headers without at least having
alternative code for not gcc compatible compilers in place. In fact
we should probably aim at removing the exclusion of public/arch-%
in the ANSI conformance check; IIRC I had to add it because things
wouldn't build without, but with the (then forgotten) goal of dealing
with this properly later on.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to