]>
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) | |
3f4a0c5b | 9 | // Licence: wxWindows licence |
c801d85f KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
d22699b5 VZ |
12 | // compiler detection; includes setup.h |
13 | #include "wx/defs.h" | |
858f7d66 | 14 | |
d22699b5 | 15 | // check if to use precompiled headers: do it for most Windows compilers unless |
384f18ed | 16 | // adding DigitalMars here appears to amke it slower! |
d22699b5 | 17 | // explicitly disabled by defining NOPCH |
7d584866 | 18 | #if ((defined(__BORLANDC__) || defined(__VISUALC__) || defined(__DIGITALMARS__) || defined(__WATCOMC__)) && defined(__WXMSW__)) || defined(__VISAGECPP__) || defined(__MWERKS__) |
74295623 | 19 | #if !defined(NOPCH) |
3f4a0c5b VZ |
20 | #define WX_PRECOMP |
21 | #endif | |
c801d85f KB |
22 | #endif |
23 | ||
24 | // For some reason, this must be defined for common dialogs to work. | |
25 | #ifdef __WATCOMC__ | |
d22699b5 | 26 | #define INCLUDE_COMMDLG_H 1 |
c801d85f KB |
27 | #endif |
28 | ||
c801d85f | 29 | #ifdef WX_PRECOMP |
c801d85f | 30 | |
f6bcfd97 BP |
31 | // include <wx/wxchar.h> first to ensure that UNICODE macro is correctly set |
32 | // _before_ including <windows.h> | |
33 | #include "wx/wxchar.h" | |
34 | ||
d22699b5 | 35 | // include standard Windows headers |
3f8e5072 | 36 | #if defined(__WXMSW__) && !wxUSE_MFC |
5438a566 VZ |
37 | #ifndef STRICT |
38 | #define STRICT 1 | |
39 | #endif | |
40 | ||
cded6e3c | 41 | #include <windows.h> |
d22699b5 | 42 | #include "wx/msw/winundef.h" |
b4277bbc | 43 | #endif |
c801d85f | 44 | |
d22699b5 | 45 | // include the most common wx headers |
6bbd3344 | 46 | #include "wx/wx.h" |
c801d85f | 47 | |
ac15e21d | 48 | #endif // WX_PRECOMP |