X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e0d9d43318af6b7865f1d07cd1b64f6eafd0c54..99cc862c0fd5fb21152854075808cf82a3a2025d:/src/msw/dummy.cpp?ds=sidebyside diff --git a/src/msw/dummy.cpp b/src/msw/dummy.cpp index 1a2876a2b9..7ca9d8a4d4 100644 --- a/src/msw/dummy.cpp +++ b/src/msw/dummy.cpp @@ -1,9 +1,9 @@ /* - * File: dummy.cc - * Purpose: See below - * Author: Julian Smart - * Created: 1993 - * Updated: + * File: dummy.cc + * Purpose: See below + * Author: Julian Smart + * Created: 1993 + * Updated: * Copyright: (c) 1993, AIAI, University of Edinburgh */ @@ -11,7 +11,7 @@ * always start by compiling this and producing the PCH file. * Then subsequent source files use the PCH file. * - * If precompiling wx.h for wxWindows and derived apps, + * If precompiling wx.h for wxWidgets and derived apps, * link dummy.obj with your program (the MSC 7 linker complains otherwise). * * This is the only convenient way I found to use precompiled headers @@ -20,54 +20,11 @@ * This will produce a big PCH file. */ -#if defined(__BORLANDC__) -#if !(defined(__WIN32__) || defined(__NT__) || defined(__WIN32__)) -#pragma hdrfile "c:\wx\src\msw\wx.pch" -#endif - -#pragma hdrstart -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif -#include - #include "wx/msw/msvcrt.h" -// Foils optimizations in Visual C++ (see also app.cpp). Without it, -// dummy.obj isn't linked and we get a linker error. -#if defined(_MSC_VER) - char wxDummyChar = 0; -#endif - -// if wxWindows is in the DLL link our entry point with the application -#if defined(WXUSINGDLL) - -// NT defines APIENTRY, 3.x not -#if !defined(APIENTRY) - #define APIENTRY FAR PASCAL -#endif - -int -#ifdef __WATCOMC__ - PASCAL -#else - APIENTRY -#endif -WinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, - LPSTR m_lpCmdLine, - int nCmdShow ) -{ - wxCrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF); - - return wxEntry((WXHINSTANCE) hInstance, (WXHINSTANCE) hPrevInstance, - m_lpCmdLine, nCmdShow); -} -#endif - -