Alistair Leslie-Hughes : include: Wrap exported function in extern C.

Alexandre Julliard julliard at winehq.org
Fri Dec 21 11:44:10 CST 2018


Module: wine
Branch: master
Commit: 0805783df313ed9fef2e4588811fd5f90a3507f4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0805783df313ed9fef2e4588811fd5f90a3507f4

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Fri Dec 21 00:24:21 2018 +0000

include: Wrap exported function in extern C.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 */




More information about the wine-cvs mailing list