]> git.saurik.com Git - wxWidgets.git/blob - include/wx/wxprec.h
include <string>
[wxWidgets.git] / include / wx / wxprec.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/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) Julian Smart
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(__VISUALC__) || \
18 defined(__DMC__) || \
19 defined(__VISAGECPP__) || \
20 defined(__MWERKS__) || \
21 defined(__WATCOMC__) || \
22 defined(__BORLANDC__)
23
24
25 // If user did not request NOCPH and we're not building using configure
26 // then assume user wants precompiled headers.
27 #if !defined(NOPCH) && !defined(__WX_SETUP_H__)
28 #define WX_PRECOMP
29 #endif
30 #endif
31
32 // For some reason, this must be defined for common dialogs to work.
33 #ifdef __WATCOMC__
34 #define INCLUDE_COMMDLG_H 1
35 #endif
36
37 #ifdef WX_PRECOMP
38
39 // include "wx/chartype.h" first to ensure that UNICODE macro is correctly set
40 // _before_ including <windows.h>
41 #include "wx/chartype.h"
42
43 // include standard Windows headers
44 #if defined(__WXMSW__)
45 #include "wx/msw/wrapwin.h"
46 #include "wx/msw/wrapcctl.h"
47 #include "wx/msw/wrapcdlg.h"
48 #include "wx/msw/private.h"
49 #include "wx/msw/missing.h"
50 #endif
51
52 // include all PalmOS headers at once
53 #ifdef __WXPALMOS__
54 # include <PalmOS.h>
55 #endif
56
57 // include <os2.h>
58 #ifdef __OS2__
59 # include "wx/os2/private.h"
60 #endif
61
62 // include mgl headers
63 #ifdef __WXMGL__
64 # include "wx/mgl/private.h"
65 #endif
66
67 // include the most common wx headers
68 #include "wx/wx.h"
69
70 #endif // WX_PRECOMP