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; }