]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wxprec.h
MVC works now.
[wxWidgets.git] / include / wx / wxprec.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
cb7d7375 2// Name: wx/wxprec.h
c801d85f
KB
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$
99d80019 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
c801d85f
KB
10/////////////////////////////////////////////////////////////////////////////
11
d22699b5
VZ
12// compiler detection; includes setup.h
13#include "wx/defs.h"
858f7d66 14
d22699b5
VZ
15// check if to use precompiled headers: do it for most Windows compilers unless
16// explicitly disabled by defining NOPCH
d22004c4
WS
17#if ( defined(__WXMSW__) && \
18 ( defined(__BORLANDC__) || \
19 defined(__VISUALC__) || \
20 defined(__DIGITALMARS__) || \
21 defined(__WATCOMC__) ) ) || \
22 defined(__VISAGECPP__) || \
43a6124f 23 defined(__MWERKS__)
d22004c4 24
248eaddf
DE
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__)
3f4a0c5b
VZ
28 #define WX_PRECOMP
29 #endif
c801d85f
KB
30#endif
31
32// For some reason, this must be defined for common dialogs to work.
33#ifdef __WATCOMC__
d22699b5 34 #define INCLUDE_COMMDLG_H 1
c801d85f
KB
35#endif
36
c801d85f 37#ifdef WX_PRECOMP
c801d85f 38
c0089c96 39// include "wx/wxchar.h" first to ensure that UNICODE macro is correctly set
f6bcfd97
BP
40// _before_ including <windows.h>
41#include "wx/wxchar.h"
42
d22699b5 43// include standard Windows headers
43a6124f 44#if defined(__WXMSW__)
9ed0d735 45 #include "wx/msw/wrapwin.h"
b4277bbc 46#endif
c801d85f 47
20bc5ad8
WS
48// include all PalmOS headers at once
49#ifdef __WXPALMOS__
50# include <PalmOS.h>
51#endif
52
cb7d7375
WS
53// include <os2.h>
54#ifdef __OS2__
55# include "wx/os2/private.h"
56#endif
57
b8af111f
WS
58// include mgl headers
59#ifdef __WXMGL__
60# include "wx/mgl/private.h"
61#endif
62
d22699b5 63// include the most common wx headers
6bbd3344 64#include "wx/wx.h"
c801d85f 65
ac15e21d 66#endif // WX_PRECOMP