X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f252f8c35dc04e75d9ee57d1eff4b98149be797a..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/main.cpp?ds=sidebyside diff --git a/src/msw/main.cpp b/src/msw/main.cpp index f761ec971a..9f96ac237c 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation #endif @@ -55,9 +55,6 @@ // function prototypes // ---------------------------------------------------------------------------- -// from src/msw/app.cpp -extern void WXDLLEXPORT wxEntryCleanup(); - static wxChar **ConvertToStandardCommandArgs(const wxChar *p, int& argc); // ============================================================================ @@ -98,27 +95,7 @@ extern "C" // Note that WinMain is also defined in dummy.obj, which is linked to // an application that is using the DLL version of wxWindows. -#if !defined(_WINDLL) - -#ifdef __WXWINCE__ -int WINAPI WinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPWSTR lpCmdLine, - int nCmdShow) -{ - return wxEntry(hInstance, hPrevInstance, (char*) lpCmdLine, nCmdShow); -} -#else -int PASCAL WinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPSTR lpCmdLine, - int nCmdShow) -{ - return wxEntry(hInstance, hPrevInstance, lpCmdLine, nCmdShow); -} -#endif - -#else // _WINDLL +#if defined(_WINDLL) // DLL entry point @@ -147,7 +124,7 @@ DllMain(HANDLE hModule, DWORD fdwReason, LPVOID WXUNUSED(lpReserved)) return TRUE; } -#endif // _WINDLL/!_WINDLL +#endif // _WINDLL } // extern "C"