osdep: Make os-win32.h and os-posix.h handle 'extern "C"' themselves
commit415a9fb880c6bf383d649643a4ce65ea3bc9b084
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 16 Apr 2021 13:55:41 +0000 (16 14:55 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 10 May 2021 16:21:54 +0000 (10 17:21 +0100)
tree0686b3279fe0540c7c885f62d91d2eb4b5d12b19
parentf16a3bf81b8b01c53144167f6cc12fb126028972
osdep: Make os-win32.h and os-posix.h handle 'extern "C"' themselves

Both os-win32.h and os-posix.h include system header files. Instead
of having osdep.h include them inside its 'extern "C"' block, make
these headers handle that themselves, so that we don't include the
system headers inside 'extern "C"'.

This doesn't fix any current problems, but it's conceptually the
right way to handle system headers.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
include/qemu/osdep.h
include/sysemu/os-posix.h
include/sysemu/os-win32.h