diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2021-04-16 14:55:41 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2021-05-10 17:21:54 +0100 |
| commit | 415a9fb880c6bf383d649643a4ce65ea3bc9b084 (patch) | |
| tree | 0686b3279fe0540c7c885f62d91d2eb4b5d12b19 /include/qemu/osdep.h | |
| parent | f16a3bf81b8b01c53144167f6cc12fb126028972 (diff) | |
| download | focaccia-qemu-415a9fb880c6bf383d649643a4ce65ea3bc9b084.tar.gz focaccia-qemu-415a9fb880c6bf383d649643a4ce65ea3bc9b084.zip | |
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>
Diffstat (limited to 'include/qemu/osdep.h')
| -rw-r--r-- | include/qemu/osdep.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index cb2a07e472..4c6f2390be 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -131,10 +131,6 @@ QEMU_EXTERN_C int daemon(int, int); */ #include "glib-compat.h" -#ifdef __cplusplus -extern "C" { -#endif - #ifdef _WIN32 #include "sysemu/os-win32.h" #endif @@ -143,6 +139,10 @@ extern "C" { #include "sysemu/os-posix.h" #endif +#ifdef __cplusplus +extern "C" { +#endif + #include "qemu/typedefs.h" /* |