]> xenbits.xensource.com Git - 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:05:18 +0000 (18:05 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 31 Mar 2008 17:05:18 +0000 (18:05 +0100)
require it.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/include/public/arch-ia64.h
xen/include/public/hvm/save.h
xen/include/public/xen-compat.h

index 9a1b67200477dc3824f53e0f4b1ea9014debbe46..43ca979cf6e79cad57e375f62709673a60ea09a4 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 3ffe182a506b1ac6f59d3b15dd05270e2a783760..d45f0c1115cabb97fbda6b160ea827c0e383e3e3 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 3514943d82c01c714e5caae9c53d0cd2454a0117..c2894990cd0e7cb2cf5416f3098db7958511b1a1 100644 (file)
@@ -41,8 +41,4 @@
 #error "These header files do not support the requested interface version."
 #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__ */