/* * File: dummy.cc * Purpose: See below * Author: Julian Smart * Created: 1993 * Updated: * Copyright: (c) 1993, AIAI, University of Edinburgh */ /* A dummy file to include wx.h. If precompiling wx.h, I * 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, * link dummy.obj with your program (the MSC 7 linker complains otherwise). * * This is the only convenient way I found to use precompiled headers * under MSC 7. * * This will produce a big PCH file. */ #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #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(__VISUALC__) && defined(__WIN16__) char wxDummyChar = 0; #endif