[PATCH] propvarutil.h: add extern "C" if __cplusplus is defined
Austin English
austinenglish at gmail.com
Wed Apr 3 01:43:54 CDT 2019
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46939
Signed-off-by: Austin English <austinenglish at gmail.com>
---
include/propvarutil.h | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/include/propvarutil.h b/include/propvarutil.h
index a4eedefdb6..e0a21faf8c 100644
--- a/include/propvarutil.h
+++ b/include/propvarutil.h
@@ -22,6 +22,10 @@
#include <shtypes.h>
#include <shlwapi.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum tagPROPVAR_CHANGE_FLAGS
{
PVCHF_DEFAULT = 0x00000000,
@@ -120,7 +124,12 @@ inline HRESULT InitPropVariantFromInt64(LONGLONG llVal, PROPVARIANT *ppropvar)
return S_OK;
}
-#endif
+#endif /* NO_PROPVAR_INLINES */
+#endif /* __cplusplus */
+
+
+#ifdef __cplusplus
+}
#endif
#endif /* __WINE_PROPVARUTIL_H */
--
2.19.2
More information about the wine-devel
mailing list