X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4e7c2aa5822f9a6e97d8d7848b95ea2eadcd98b..858f7d664166563a7725f3487249eed7f30e2f31:/src/msw/main.cpp diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 1cab1f628e..45db41d119 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -9,6 +9,10 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// +#ifdef __GNUG__ +#pragma implementation +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -16,6 +20,7 @@ #pragma hdrstop #endif +#include "wx/event.h" #include "wx/app.h" #include @@ -35,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