[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: |
Peter Maydell |
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 17:25:51 +0100 |
On Fri, 16 Apr 2021 at 17:25, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> 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.
Yeah, I thought as I was writing this that it was odd that these are
in sysemu/ but osdep itself is in qemu/...
thanks
-- PMM
- [PATCH for-6.0? 0/6] extern "C" overhaul for C++ files, Peter Maydell, 2021/04/16
- [PATCH for-6.0? 2/6] osdep: protect qemu/osdep.h with extern "C", Peter Maydell, 2021/04/16
- [PATCH for-6.0? 3/6] include/qemu/osdep.h: Move system includes to top, Peter Maydell, 2021/04/16
- [PATCH for-6.0? 4/6] osdep: Make os-win32.h and os-posix.h handle 'extern "C"' themselves, Peter Maydell, 2021/04/16
- [PATCH for-6.0? 1/6] osdep: include glib-compat.h before other QEMU headers, Peter Maydell, 2021/04/16
- [PATCH for-6.0? 6/6] include/disas/dis-asm.h: Handle being included outside 'extern "C"', Peter Maydell, 2021/04/16
- [PATCH for-6.0? 5/6] include/qemu/bswap.h: Handle being included outside extern "C" block, Peter Maydell, 2021/04/16
- Re: [PATCH for-6.0? 0/6] extern "C" overhaul for C++ files, no-reply, 2021/04/16
- Re: [PATCH for-6.0? 0/6] extern "C" overhaul for C++ files, Philippe Mathieu-Daudé, 2021/04/16
- Re: [PATCH for-6.0? 0/6] extern "C" overhaul for C++ files, Paolo Bonzini, 2021/04/16