]> git.saurik.com Git - wxWidgets.git/blob - include/wx/wxprec.h
Added dde sample; added docs/index.htm
[wxWidgets.git] / include / wx / wxprec.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wxprec.h
3 // Purpose: Includes the appropriate files for precompiled headers
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c)
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // check if to use precompiled headers
13 #if (defined(__BORLANDC__) || defined(_MSC_VER) || defined(__WATCOMC__)) && defined(__WXMSW__)
14 #if !NOPCH
15 #define WX_PRECOMP
16 #endif
17 #endif
18
19 // For some reason, this must be defined for common dialogs to work.
20 #ifdef __WATCOMC__
21 #define INCLUDE_COMMDLG_H 1
22 #endif
23
24 // include the wx definitions
25 #ifdef WX_PRECOMP
26 #include "wx/wx.h"
27
28 // Comment this out if you don't mind slower compilation of the wxWindows
29 // library
30 #if !defined(__WXMAC__) && !defined(__SALFORDC__)
31 #include <windows.h>
32 #endif
33
34 #ifdef GetClassInfo
35 #undef GetClassInfo
36 #endif
37
38 #ifdef GetClassName
39 #undef GetClassName
40 #endif
41
42 #ifdef DrawText
43 #undef DrawText
44 #endif
45
46 #ifdef GetCharWidth
47 #undef GetCharWidth
48 #endif
49
50 #ifdef StartDoc
51 #undef StartDoc
52 #endif
53
54 #ifdef FindWindow
55 #undef FindWindow
56 #endif
57
58 #ifdef FindResource
59 #undef FindResource
60 #endif
61
62 #ifdef LoadAccelerators
63 #undef LoadAccelerators
64 #endif
65
66 #else
67 // always include this file (under Unix it's generated by configure)
68 #include "wx/setup.h"
69 #endif
70