mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Explicitly tag every anonymous aggregate in the public headers.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
4bb6f7de67
commit
d1e5ff7440
9 files changed
+32
-26
No files matched your search
@@ -19,6 +19,9 @@ f.write('''
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#define __anonymous_struct __extension__ struct
|
||||
#define __anonymous_union __extension__ union
|
||||
''');
|
||||
|
||||
for a in archs:
|
||||
|
||||
@@ -38,7 +38,7 @@ inttypes["x86_64"] = {
|
||||
};
|
||||
header["x86_64"] = """
|
||||
#ifdef __GNUC__
|
||||
# define __DECL_REG(name) __extension__ union { uint64_t r ## name, e ## name; }
|
||||
# define __DECL_REG(name) __anonymous_union { uint64_t r ## name, e ## name; }
|
||||
# define __align8__ __attribute__((aligned (8)))
|
||||
#else
|
||||
# define __DECL_REG(name) uint64_t r ## name
|
||||
|
||||