History | View | Annotate | Download (1.2 kB)
Add new macro QEMU_PACKED for packed C structures
A packed struct needs different gcc attributes for compilationswith MinGW compilers because glib-2.0 adds compiler flag-mms-bitfields which modifies the packing algorithm.
Attribute gcc_struct reverses the negative effects of -mms-bitfields....
Introduce compiler.h header file
This moves compiler related macros from qemu-common.h to compiler.h.
The reason for this change is that there are simple header files thatdepend only on the compiler macros, so including qemu-common.h is overkill.
Besides, qemu-common.h is bloated and will benefit from some splitting....