From 028e7716ef44f926c5fc04c2e484ef86bb8760ed Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 20 Dec 2004 01:31:48 +0000 Subject: [PATCH] wxGetInstance must be defined as extern C (patch 1085837) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/main.cpp b/src/msw/main.cpp index a8bee7283b..5251f1f34d 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -155,7 +155,7 @@ DllMain(HANDLE hModule, DWORD fdwReason, LPVOID WXUNUSED(lpReserved)) HINSTANCE wxhInstance = 0; -HINSTANCE wxGetInstance() +extern "C" HINSTANCE wxGetInstance() { return wxhInstance; }