Explicitly tag every anonymous aggregate in the public headers.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-03-26 10:14:50 +00:00
1 parent 4bb6f7de67
commit d1e5ff7440
9 files changed
+32 -26

No files matched your search

+3
View File
@@ -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:
+1 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.