]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wxprec.h
Define WXBUILDING in Xcode projects.
[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
3c9e913f
WS
17#if defined(__VISUALC__) || \
18 defined(__DMC__) || \
19 defined(__VISAGECPP__) || \
3c9e913f
WS
20 defined(__WATCOMC__) || \
21 defined(__BORLANDC__)
03647350 22
d22004c4 23
248eaddf
DE
24 // If user did not request NOCPH and we're not building using configure
25 // then assume user wants precompiled headers.
26 #if !defined(NOPCH) && !defined(__WX_SETUP_H__)
3f4a0c5b
VZ
27 #define WX_PRECOMP
28 #endif
c801d85f
KB
29#endif
30
31// For some reason, this must be defined for common dialogs to work.
32#ifdef __WATCOMC__
d22699b5 33 #define INCLUDE_COMMDLG_H 1
c801d85f
KB
34#endif
35
c801d85f 36#ifdef WX_PRECOMP
c801d85f 37
e3f6cbd9 38// include "wx/chartype.h" first to ensure that UNICODE macro is correctly set
f6bcfd97 39// _before_ including <windows.h>
e3f6cbd9 40#include "wx/chartype.h"
f6bcfd97 41
d22699b5 42// include standard Windows headers
d48f13a1 43#if defined(__WINDOWS__)
9ed0d735 44 #include "wx/msw/wrapwin.h"
d48f13a1
VZ
45 #include "wx/msw/private.h"
46#endif
47#if defined(__WXMSW__)
30d5f9f5
WS
48 #include "wx/msw/wrapcctl.h"
49 #include "wx/msw/wrapcdlg.h"
30d5f9f5 50 #include "wx/msw/missing.h"
b4277bbc 51#endif
c801d85f 52
cb7d7375
WS
53// include <os2.h>
54#ifdef __OS2__
55# include "wx/os2/private.h"
56#endif
57
d22699b5 58// include the most common wx headers
6bbd3344 59#include "wx/wx.h"
c801d85f 60
ac15e21d 61#endif // WX_PRECOMP