]> git.saurik.com Git - wxWidgets.git/blob - include/wx/wxprec.h
applied tons of wxGrid patches
[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 // compiler detection; includes setup.h
13 #include "wx/defs.h"
14
15 // check if to use precompiled headers: do it for most Windows compilers unless
16 // explicitly disabled by defining NOPCH
17 #if ((defined(__BORLANDC__) || defined(__VISUALC__) || defined(__WATCOMC__)) && defined(__WXMSW__)) || defined(__VISAGECPP__)
18 #if !defined(NOPCH)
19 #define WX_PRECOMP
20 #endif
21 #endif
22
23 // For some reason, this must be defined for common dialogs to work.
24 #ifdef __WATCOMC__
25 #define INCLUDE_COMMDLG_H 1
26 #endif
27
28 #ifdef WX_PRECOMP
29
30 // include <wx/wxchar.h> first to ensure that UNICODE macro is correctly set
31 // _before_ including <windows.h>
32 #include "wx/wxchar.h"
33
34 // include standard Windows headers
35 #if defined(__WXMSW__) && !wxUSE_MFC
36 #include <windows.h>
37 #include "wx/msw/winundef.h"
38 #endif
39
40 // include the most common wx headers
41 #include "wx/wx.h"
42
43 #endif // WX_PRECOMP