[PATCH] include: Wrap exported function in extern C

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Thu Dec 20 18:24:21 CST 2018


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 include/mfapi.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/mfapi.h b/include/mfapi.h
index 4697f50..b0d8e43 100644
--- a/include/mfapi.h
+++ b/include/mfapi.h
@@ -23,6 +23,10 @@
 #include <mmreg.h>
 #include <avrt.h>
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #if !defined(MF_VERSION)
 /* Default to Windows XP */
 #define MF_SDK_VERSION 0x0001
@@ -95,4 +99,8 @@ HRESULT WINAPI MFTUnregister(CLSID clsid);
 HRESULT WINAPI MFTUnregisterLocal(IClassFactory *factory);
 HRESULT WINAPI MFGetPluginControl(IMFPluginControl**);
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* __WINE_MFAPI_H */
-- 
1.9.1




More information about the wine-devel mailing list