summaryrefslogtreecommitdiffstats
path: root/include/disas
diff options
context:
space:
mode:
authorPeter Maydell2021-04-16 15:55:42 +0200
committerPeter Maydell2021-05-10 18:21:54 +0200
commitb30a8c241fe22b9cbd0ad015809fc92688fee4ff (patch)
treec8688f329c20fe4153106821faf6d2a99208722c /include/disas
parentosdep: Make os-win32.h and os-posix.h handle 'extern "C"' themselves (diff)
downloadqemu-b30a8c241fe22b9cbd0ad015809fc92688fee4ff.tar.gz
qemu-b30a8c241fe22b9cbd0ad015809fc92688fee4ff.tar.xz
qemu-b30a8c241fe22b9cbd0ad015809fc92688fee4ff.zip
include/qemu/bswap.h: Handle being included outside extern "C" block
Make bswap.h handle being included outside an 'extern "C"' block: all system headers are included first, then all declarations are put inside an 'extern "C"' block. This requires a little rearrangement as currently we have an ifdef ladder that has some system includes and some local declarations or definitions, and we need to separate those out. We want to do this because dis-asm.h includes bswap.h, dis-asm.h may need to be included from C++ files, and system headers should not be included within 'extern "C"' blocks. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/disas')
0 files changed, 0 insertions, 0 deletions