From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:14 +0000 (-0700) Subject: Remove extern "C" X-Git-Tag: stable-10.2.0~447 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcc99f692159012ca146a9dab59a2d2b671d45f8;p=thirdparty%2Fopen-vm-tools.git Remove extern "C" --- diff --git a/open-vm-tools/lib/include/guest_os.h b/open-vm-tools/lib/include/guest_os.h index 3fa7058cd..2ecc9c2aa 100644 --- a/open-vm-tools/lib/include/guest_os.h +++ b/open-vm-tools/lib/include/guest_os.h @@ -27,6 +27,10 @@ #include "vm_basic_types.h" #include "guest_os_tables.h" +#if defined(__cplusplus) +extern "C" { +#endif + /* * There's no practical max to the number of guests that can be defined in * the list below (guest IDs are limited to 2^32), but there is a maximum @@ -507,4 +511,8 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set); #define STR_OS_64BIT_SUFFIX_FULL " (64 bit)" #define STR_OS_EMPTY "" +#if defined(__cplusplus) +} // extern "C" +#endif + #endif diff --git a/open-vm-tools/lib/include/guest_os_tables.h b/open-vm-tools/lib/include/guest_os_tables.h index 48e0f3c80..2954a7b08 100644 --- a/open-vm-tools/lib/include/guest_os_tables.h +++ b/open-vm-tools/lib/include/guest_os_tables.h @@ -24,6 +24,10 @@ #define INCLUDE_ALLOW_VMCORE #include "includeCheck.h" +#if defined(__cplusplus) +extern "C" { +#endif + #define GUEST_OS_TYPE_GEN \ GOT(GUEST_OS_ANY) \ GOT(GUEST_OS_DOS) \ @@ -294,4 +298,8 @@ GOSL(STR_OS_WIN_XP_PRO, GUEST_OS_WINXP, "winPreVista.iso") \ GOSL(STR_OS_WIN_XP_PRO_X64, GUEST_OS_WINXPPRO_64, "winPreVista.iso") \ +#if defined(__cplusplus) +} // extern "C" +#endif + #endif