X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..eeccd5d94ce6b11f36af95db4ac528a2e2e0c4c5:/src/msw/dummy.cpp diff --git a/src/msw/dummy.cpp b/src/msw/dummy.cpp index 67004e57c8..83850c956c 100644 --- a/src/msw/dummy.cpp +++ b/src/msw/dummy.cpp @@ -39,8 +39,11 @@ #pragma hdrstop #endif -// Foils optimizations in Visual C++ (see also wx_main.cc) +// Foils optimizations in Visual C++ (see also app.cpp). Without it, +// dummy.obj isn't linked and we get a linker error. +#if defined(_MSC_VER) char wxDummyChar=0; +#endif #if defined(WXUSINGDLL) @@ -55,7 +58,7 @@ int PASCAL int APIENTRY #endif - WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR m_lpCmdLine, + WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR m_lpCmdLine, int nCmdShow ) { return wxEntry((WXHINSTANCE) hInstance, (WXHINSTANCE) hPrevInstance, m_lpCmdLine, nCmdShow);