qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-6.0? 4/6] osdep: Make os-win32.h and os-posix.h handle 'e


From: Paolo Bonzini
Subject: Re: [PATCH for-6.0? 4/6] osdep: Make os-win32.h and os-posix.h handle 'extern "C"' themselves
Date: Fri, 16 Apr 2021 18:25:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

On 16/04/21 15:55, Peter Maydell wrote:
  #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"
/*
diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h
index 629c8c648b7..2edf33658a4 100644
--- a/include/sysemu/os-posix.h
+++ b/include/sysemu/os-posix.h
@@ -38,6 +38,10 @@
  #include <sys/sysmacros.h>
  #endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+

include/sysemu/ is also the wrong directory to have these headers, which probably should be split into a qemu/osdep-{win32,posix}.h part and an actual sysemu/os-{win32,posix}.h part. But this is good enough for now.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]