]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
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 | |
34138703 | 13 | #if (defined(__BORLANDC__) || defined(_MSC_VER) || defined(__WATCOMC__) || defined(__GNUWIN32__)) && defined(__WXMSW__) |
c801d85f KB |
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 | |
b4277bbc | 30 | #ifndef __WXMAC__ |
c801d85f | 31 | #include <windows.h> |
b4277bbc | 32 | #endif |
c801d85f KB |
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 | ||
03f38c58 VZ |
62 | #else |
63 | // always include this file (under Unix it's generated by configure) | |
64 | #include "wx/setup.h" | |
c801d85f KB |
65 | #endif |
66 |