ia64/xen-unstable

changeset 17357:da9bd2e81288

Constrain the checks for GCC/ANSI to just those header files that
require it.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 31 18:05:18 2008 +0100 (2008-03-31)
parents 615ee2933137
children 76c4af29842f
files xen/include/public/arch-ia64.h xen/include/public/hvm/save.h xen/include/public/xen-compat.h
line diff
     1.1 --- a/xen/include/public/arch-ia64.h	Mon Mar 31 17:43:18 2008 +0100
     1.2 +++ b/xen/include/public/arch-ia64.h	Mon Mar 31 18:05:18 2008 +0100
     1.3 @@ -28,6 +28,10 @@
     1.4  #ifndef __HYPERVISOR_IF_IA64_H__
     1.5  #define __HYPERVISOR_IF_IA64_H__
     1.6  
     1.7 +#if !defined(__GNUC__) || defined(__STRICT_ANSI__)
     1.8 +#error "Anonymous structs/unions are a GNU extension."
     1.9 +#endif
    1.10 +
    1.11  /* Structural guest handles introduced in 0x00030201. */
    1.12  #if __XEN_INTERFACE_VERSION__ >= 0x00030201
    1.13  #define ___DEFINE_XEN_GUEST_HANDLE(name, type) \
     2.1 --- a/xen/include/public/hvm/save.h	Mon Mar 31 17:43:18 2008 +0100
     2.2 +++ b/xen/include/public/hvm/save.h	Mon Mar 31 18:05:18 2008 +0100
     2.3 @@ -39,6 +39,10 @@
     2.4   * Internal mechanisms should be kept in Xen-private headers.
     2.5   */
     2.6  
     2.7 +#if !defined(__GNUC__) || defined(__STRICT_ANSI__)
     2.8 +#error "Anonymous structs/unions are a GNU extension."
     2.9 +#endif
    2.10 +
    2.11  /* 
    2.12   * Each entry is preceded by a descriptor giving its type and length
    2.13   */
     3.1 --- a/xen/include/public/xen-compat.h	Mon Mar 31 17:43:18 2008 +0100
     3.2 +++ b/xen/include/public/xen-compat.h	Mon Mar 31 18:05:18 2008 +0100
     3.3 @@ -41,8 +41,4 @@
     3.4  #error "These header files do not support the requested interface version."
     3.5  #endif
     3.6  
     3.7 -#if defined(__GNUC__) && defined(__STRICT_ANSI__)
     3.8 -#error "These headers files use GNU extensions when built with GCC."
     3.9 -#endif
    3.10 -
    3.11  #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */