Add 'extern "C"' constructs where required for name mangling, and fix some (now required) type casts.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
/* Forward reference. */
typedef struct DesktopSwitchCallbackManager DesktopSwitchCallbackManager;
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
void Unity_Init(GuestApp_Dict *conf,
int *blockedWnd,
DesktopSwitchCallbackManager *desktopSwitchCallbackMgr);
HWND Unity_GetHwndFromUnityId(UnityWindowId id);
#endif
+#ifdef __cplusplus
+};
+#endif // __cplusplus
+
#endif
* Implemented by unityPlatform[Win32|X11|Cocoa (ha!)].c
*/
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
Bool UnityPlatformIsSupported(void);
UnityPlatform *UnityPlatformInit(UnityWindowTracker *tracker,
UnityUpdateChannel *updateChannel,
void UnityUpdateChannelCleanup(UnityUpdateChannel *updateChannel);
Bool UnitySendUpdates(UnityUpdateChannel *updateChannel);
+#ifdef __cplusplus
+};
+#endif // __cplusplus
+
#endif