Re: [PATCH 2/2] osdep: protect qemu/osdep.h with extern "C"

2021-04-13 Thread Peter Maydell
On Tue, 13 Apr 2021 at 12:37, Paolo Bonzini wrote: > > System headers may include templates if compiled with a C++ compiler, > which cause the compiler to complain if qemu/osdep.h is included > within a C++ source file's 'extern "C"' block. Add > an 'extern "C"' block directly to qemu/osdep.h, so

[PATCH 2/2] osdep: protect qemu/osdep.h with extern "C"

2021-04-13 Thread Paolo Bonzini
System headers may include templates if compiled with a C++ compiler, which cause the compiler to complain if qemu/osdep.h is included within a C++ source file's 'extern "C"' block. Add an 'extern "C"' block directly to qemu/osdep.h, so that system headers can be kept out of it. There is a stray