diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2016-07-07 14:07:33 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-07-12 18:31:27 +0200 |
| commit | 1e13c01d2a4eadb9c498caa809a21e3b5672b411 (patch) | |
| tree | 4e914a5525bfdb62b935477b73aee762c98b77f9 /hw/intc/omap_intc.c | |
| parent | a942d8fa01f65279cdc135f4294db611bbc088ef (diff) | |
| download | focaccia-qemu-1e13c01d2a4eadb9c498caa809a21e3b5672b411.tar.gz focaccia-qemu-1e13c01d2a4eadb9c498caa809a21e3b5672b411.zip | |
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 <sbruno@freebsd.org> Tested-by: Sean Bruno <sbruno@freebsd.org> Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/intc/omap_intc.c')
0 files changed, 0 insertions, 0 deletions