X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3b466481eac25cbef1d35aaf6ee9d94167a07b9..7d4194184e83bbccf1a88325cca59d8d0d2faef1:/src/msw/main.cpp diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 044388d1af..3565e7fa23 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) +#if defined(__TWIN32__) || defined(__WXWINE__) + +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