diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-03-25 18:02:00 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-03-25 18:02:00 +0000 |
commit | 6131fde768de12a5e56127096c828525b08232d3 (patch) | |
tree | a029c5e7fb75aacf0f8b5673bb276c69fb55d574 /tools/include/xen-foreign | |
parent | 2526bd99954c96fad7b544630a1eb9584a9a357b (diff) | |
download | xen-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/xen-foreign')
-rw-r--r-- | tools/include/xen-foreign/mkheader.py | 2 |
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 |