A .c file including error.h and not including qemu-common.h will break the
build, because error.h uses a macro defined in qemu-common.h.

The simple and obvious fix would be to change error.h to include
qemu-common.h. But this is overkill, so this series does some splitting in
qemu-common.h and changes error.h to include only what it really needs.

Please, refer to the patches for more details.

v4
 o Fix use of reserved double underscores
 o Add license text as asked by Malc

v3
 o Drop license text from compiler.h

v2
 o Move compiler related macros from qemu-common.h to compiler.h

 compiler.h    |   34 ++++++++++++++++++++++++++++++++++
 error.h       |    1 +
 qemu-common.h |   25 +------------------------
 3 files changed, 36 insertions(+), 24 deletions(-)

Reply via email to