]> Git Repo - qemu.git/commit
disas: avoid including everything in headers compiled from C++
authorPaolo Bonzini <[email protected]>
Thu, 7 Jul 2016 12:07:33 +0000 (14:07 +0200)
committerPaolo Bonzini <[email protected]>
Tue, 12 Jul 2016 16:31:27 +0000 (18:31 +0200)
commit1e13c01d2a4eadb9c498caa809a21e3b5672b411
tree4e914a5525bfdb62b935477b73aee762c98b77f9
parenta942d8fa01f65279cdc135f4294db611bbc088ef
disas: avoid including everything in headers compiled from C++

disas/arm-a64.cc is careful to include only the bare minimum that
it needs---qemu/osdep.h and disas/bfd.h.  Unfortunately, disas/bfd.h
then includes qemu-common.h, which brings in qemu/option.h and from
there we get the kitchen sink.

This causes problems because for example QEMU's atomic macros
conflict with C++ atomic types.  But really all that bfd.h needs
is the fprintf_function typedef, so replace the inclusion of
qemu-common.h with qemu/fprintf-fn.h.

Reported-by: Sean Bruno <[email protected]>
Tested-by: Sean Bruno <[email protected]>
Cc: Peter Maydell <[email protected]>
Cc: Markus Armbruster <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
include/disas/bfd.h
This page took 0.023688 seconds and 4 git commands to generate.