X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3b466481eac25cbef1d35aaf6ee9d94167a07b9..f3bd1796cae0fc37a45f6b7a61b473e3ddc652ee:/src/msw/main.cpp diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 044388d1af..45db41d119 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -20,6 +20,7 @@ #pragma hdrstop #endif +#include "wx/event.h" #include "wx/app.h" #include @@ -39,15 +40,25 @@ #if !defined(_WINDLL) +#ifdef __TWIN32__ + +extern "C" +BOOL PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) + +#else + #ifdef __WATCOMC__ int PASCAL #else int APIENTRY #endif - WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR m_lpCmdLine, int nCmdShow ) + WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) +#endif +// __TWIN32__ + { - return wxEntry((WXHINSTANCE) hInstance, (WXHINSTANCE) hPrevInstance, m_lpCmdLine, nCmdShow); + return wxEntry((WXHINSTANCE) hInstance, (WXHINSTANCE) hPrevInstance, lpCmdLine, nCmdShow); } #endif