X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2432b92dd7a837db13d3938a56c1959decd03203..f11f454d85f2eaabd5e2cfbba02b4cfc0b3e7088:/src/msw/main.cpp diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 1db4fedfc8..45db41d119 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -40,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