aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-03-25 18:02:00 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-03-25 18:02:00 +0000
commit6131fde768de12a5e56127096c828525b08232d3 (patch)
treea029c5e7fb75aacf0f8b5673bb276c69fb55d574 /tools/include
parent2526bd99954c96fad7b544630a1eb9584a9a357b (diff)
downloadxen-6131fde768de12a5e56127096c828525b08232d3.tar.gz
xen-6131fde768de12a5e56127096c828525b08232d3.tar.bz2
xen-6131fde768de12a5e56127096c828525b08232d3.zip
Prefix unnamed union structure fields with __extension__ to make it
work properly even in e.g. C99 standard mode. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/xen-foreign/mkheader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/xen-foreign/mkheader.py b/tools/include/xen-foreign/mkheader.py
index 3d75a7a4b6..ba6f98cfce 100644
--- a/tools/include/xen-foreign/mkheader.py
+++ b/tools/include/xen-foreign/mkheader.py
@@ -38,7 +38,7 @@ inttypes["x86_64"] = {
};
header["x86_64"] = """
#ifdef __GNUC__
-# define __DECL_REG(name) union { uint64_t r ## name, e ## name; }
+# define __DECL_REG(name) __extension__ union { uint64_t r ## name, e ## name; }
# define __align8__ __attribute__((aligned (8)))
#else
# define __DECL_REG(name) uint64_t r ## name