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 // Copyright:   (c) Julian Smart
8 // Licence:     wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10 
11 // compiler detection; includes setup.h
12 #include "wx/defs.h"
13 
14 // check if to use precompiled headers: do it for most Windows compilers unless
15 // explicitly disabled by defining NOPCH
16 #if defined(__VISUALC__)   || \
17     defined(__DMC__)       || \
18     defined(__VISAGECPP__) || \
19     defined(__WATCOMC__)   || \
20     defined(__BORLANDC__)
21 
22 
23     // If user did not request NOCPH and we're not building using configure
24     // then assume user wants precompiled headers.
25     #if !defined(NOPCH) && !defined(__WX_SETUP_H__)
26         #define WX_PRECOMP
27     #endif
28 #endif
29 
30 // For some reason, this must be defined for common dialogs to work.
31 #ifdef __WATCOMC__
32     #define INCLUDE_COMMDLG_H  1
33 #endif
34 
35 #ifdef WX_PRECOMP
36 
37 // include "wx/chartype.h" first to ensure that UNICODE macro is correctly set
38 // _before_ including <windows.h>
39 #include "wx/chartype.h"
40 
41 // include standard Windows headers
42 #if defined(__WINDOWS__)
43     #include "wx/msw/wrapwin.h"
44     #include "wx/msw/private.h"
45 #endif
46 #if defined(__WXMSW__)
47     #include "wx/msw/wrapcctl.h"
48     #include "wx/msw/wrapcdlg.h"
49     #include "wx/msw/missing.h"
50 #endif
51 
52 // include <os2.h>
53 #ifdef __OS2__
54 #   include "wx/os2/private.h"
55 #endif
56 
57 // include the most common wx headers
58 #include "wx/wx.h"
59 
60 #endif // WX_PRECOMP
61