]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/wxprec.h
Use SelectAll() instead of SetSelection(-1, -1).
[wxWidgets.git] / include / wx / wxprec.h
... / ...
CommitLineData
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(__WATCOMC__) || \
21 defined(__BORLANDC__)
22
23
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__)
27 #define WX_PRECOMP
28 #endif
29#endif
30
31// For some reason, this must be defined for common dialogs to work.
32#ifdef __WATCOMC__
33 #define INCLUDE_COMMDLG_H 1
34#endif
35
36#ifdef WX_PRECOMP
37
38// include "wx/chartype.h" first to ensure that UNICODE macro is correctly set
39// _before_ including <windows.h>
40#include "wx/chartype.h"
41
42// include standard Windows headers
43#if defined(__WXMSW__)
44 #include "wx/msw/wrapwin.h"
45 #include "wx/msw/wrapcctl.h"
46 #include "wx/msw/wrapcdlg.h"
47 #include "wx/msw/private.h"
48 #include "wx/msw/missing.h"
49#endif
50
51// include <os2.h>
52#ifdef __OS2__
53# include "wx/os2/private.h"
54#endif
55
56// include the most common wx headers
57#include "wx/wx.h"
58
59#endif // WX_PRECOMP