]> git.saurik.com Git - wxWidgets.git/blame - src/msw/dummy.cpp
Check for NULL before dereferencing
[wxWidgets.git] / src / msw / dummy.cpp
CommitLineData
2bda0e17 1/*
3f4a0c5b
VZ
2 * File: dummy.cc
3 * Purpose: See below
4 * Author: Julian Smart
5 * Created: 1993
6 * Updated:
2bda0e17
KB
7 * Copyright: (c) 1993, AIAI, University of Edinburgh
8 */
9
2bda0e17
KB
10/* A dummy file to include wx.h. If precompiling wx.h, I
11 * always start by compiling this and producing the PCH file.
12 * Then subsequent source files use the PCH file.
13 *
14 * If precompiling wx.h for wxWindows and derived apps,
15 * link dummy.obj with your program (the MSC 7 linker complains otherwise).
16 *
17 * This is the only convenient way I found to use precompiled headers
18 * under MSC 7.
19 *
20 * This will produce a big PCH file.
21 */
22
2bda0e17 23#include "wx/wxprec.h"
2bda0e17
KB
24
25#ifdef __BORLANDC__
6e0d9d43 26 #pragma hdrstop
2bda0e17
KB
27#endif
28
6e0d9d43
VZ
29#include "wx/msw/msvcrt.h"
30
3d05544e
JS
31// Foils optimizations in Visual C++ (see also app.cpp). Without it,
32// dummy.obj isn't linked and we get a linker error.
7fee680b 33#if defined(__VISUALC__) && defined(__WIN16__)
6e0d9d43 34 char wxDummyChar = 0;
3d05544e 35#endif
2bda0e17 36