]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
Constrain the checks for GCC/ANSI to just those header files that
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Mar 2008 17:09:19 +0000 (18:09 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Mar 2008 17:09:19 +0000 (18:09 +0100)
require it.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   17327:da9bd2e81288225c8836e8083430ebcadf696f98
xen-unstable date:        Mon Mar 31 18:05:18 2008 +0100

xen/include/public/arch-ia64.h
xen/include/public/hvm/save.h
xen/include/public/xen-compat.h

index 620b6c51c158d01585e36a6b754727882777e7d4..003fab02b614e18ac7401218b113b233cfade69e 100644 (file)
 #ifndef __HYPERVISOR_IF_IA64_H__
 #define __HYPERVISOR_IF_IA64_H__
 
+#if !defined(__GNUC__) || defined(__STRICT_ANSI__)
+#error "Anonymous structs/unions are a GNU extension."
+#endif
+
 /* Structural guest handles introduced in 0x00030201. */
 #if __XEN_INTERFACE_VERSION__ >= 0x00030201
 #define ___DEFINE_XEN_GUEST_HANDLE(name, type) \
index e01218a9d6f47cd1b034b7719f2287d35e9cee04..d790978174af3421b96fe9299d1666737d992993 100644 (file)
  * Internal mechanisms should be kept in Xen-private headers.
  */
 
+#if !defined(__GNUC__) || defined(__STRICT_ANSI__)
+#error "Anonymous structs/unions are a GNU extension."
+#endif
+
 /* 
  * Each entry is preceded by a descriptor giving its type and length
  */
index 59fe87b0f2cd3be9c07448504ac80bb52cbaa639..19b0a2c73338e3be9f20f32ed457f93a674fcf5d 100644 (file)
@@ -48,8 +48,4 @@
 #define XEN_GUEST_HANDLE_00030205(type) type *
 #endif
 
-#if defined(__GNUC__) && defined(__STRICT_ANSI__)
-#error "These headers files use GNU extensions when built with GCC."
-#endif
-
 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */