X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4e7c2aa5822f9a6e97d8d7848b95ea2eadcd98b..6a570331df89d26dfb682bedab0faf13e2c285d8:/src/msw/main.cpp diff --git a/src/msw/main.cpp b/src/msw/main.cpp index 1cab1f628e..3565e7fa23 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) +#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