]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wxprec.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[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
99d80019 7// Copyright: (c) Julian Smart
65571936 8// Licence: wxWindows licence
c801d85f
KB
9/////////////////////////////////////////////////////////////////////////////
10
d22699b5
VZ
11// compiler detection; includes setup.h
12#include "wx/defs.h"
858f7d66 13
d22699b5
VZ
14// check if to use precompiled headers: do it for most Windows compilers unless
15// explicitly disabled by defining NOPCH
3c9e913f
WS
16#if defined(__VISUALC__) || \
17 defined(__DMC__) || \
18 defined(__VISAGECPP__) || \
3c9e913f
WS
19 defined(__WATCOMC__) || \
20 defined(__BORLANDC__)
03647350 21
d22004c4 22
248eaddf
DE
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__)
3f4a0c5b
VZ
26 #define WX_PRECOMP
27 #endif
c801d85f
KB
28#endif
29
30// For some reason, this must be defined for common dialogs to work.
31#ifdef __WATCOMC__
d22699b5 32 #define INCLUDE_COMMDLG_H 1
c801d85f
KB
33#endif
34
c801d85f 35#ifdef WX_PRECOMP
c801d85f 36
e3f6cbd9 37// include "wx/chartype.h" first to ensure that UNICODE macro is correctly set
f6bcfd97 38// _before_ including <windows.h>
e3f6cbd9 39#include "wx/chartype.h"
f6bcfd97 40
d22699b5 41// include standard Windows headers
d48f13a1 42#if defined(__WINDOWS__)
9ed0d735 43 #include "wx/msw/wrapwin.h"
d48f13a1
VZ
44 #include "wx/msw/private.h"
45#endif
46#if defined(__WXMSW__)
30d5f9f5
WS
47 #include "wx/msw/wrapcctl.h"
48 #include "wx/msw/wrapcdlg.h"
30d5f9f5 49 #include "wx/msw/missing.h"
b4277bbc 50#endif
c801d85f 51
cb7d7375
WS
52// include <os2.h>
53#ifdef __OS2__
54# include "wx/os2/private.h"
55#endif
56
d22699b5 57// include the most common wx headers
6bbd3344 58#include "wx/wx.h"
c801d85f 59
ac15e21d 60#endif // WX_PRECOMP