mirror of https://github.com/xemu-project/xemu.git
qemu/compiler.h: Drop gcc_struct attribute in QEMU_PACKED
This attribute was added in 0f7fdd3
to reverse the effects of
-mms-bitfields, which is enabled by default when building for Windows.
Let's just align with other libraries.
Really all structures using QEMU_PACKED should be audited for bitfield
packing dependency, but it mostly looks to be applied to structs
without bitfields.
This commit is contained in:
parent
67053d1db3
commit
454668e5b2
|
@ -22,12 +22,7 @@
|
|||
#define QEMU_EXTERN_C extern
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && (defined(__x86_64__) || defined(__i386__))
|
||||
# define QEMU_PACKED __attribute__((gcc_struct, packed))
|
||||
#else
|
||||
# define QEMU_PACKED __attribute__((packed))
|
||||
#endif
|
||||
|
||||
#define QEMU_PACKED __attribute__((packed))
|
||||
#define QEMU_ALIGNED(X) __attribute__((aligned(X)))
|
||||
|
||||
#ifndef glue
|
||||
|
|
Loading…
Reference in New Issue