]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wxprec.h
Updated for Mahogany.
[wxWidgets.git] / include / wx / wxprec.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: 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)
3f4a0c5b 9// Licence: wxWindows licence
c801d85f
KB
10/////////////////////////////////////////////////////////////////////////////
11
858f7d66
VZ
12#include "wx/setup.h" // always include this file (under Unix it's generated by configure)
13#include "wx/defs.h" // compiler definitions
14
c801d85f 15// check if to use precompiled headers
3f4a0c5b
VZ
16#if (defined(__BORLANDC__) || defined(__VISUALC__) || defined(__WATCOMC__)) && defined(__WXMSW__)
17 #if !NOPCH
18 #define WX_PRECOMP
19 #endif
c801d85f
KB
20#endif
21
22// For some reason, this must be defined for common dialogs to work.
23#ifdef __WATCOMC__
3f4a0c5b 24#define INCLUDE_COMMDLG_H 1
c801d85f
KB
25#endif
26
27// include the wx definitions
28#ifdef WX_PRECOMP
29#include "wx/wx.h"
30
31// Comment this out if you don't mind slower compilation of the wxWindows
32// library
ce3ed50d 33#if !defined(__WXMAC__) && !defined(__SALFORDC__)
bc413685 34#include <windows.h>
b4277bbc 35#endif
c801d85f
KB
36
37#ifdef GetClassInfo
38#undef GetClassInfo
39#endif
40
41#ifdef GetClassName
42#undef GetClassName
43#endif
44
45#ifdef DrawText
46#undef DrawText
47#endif
48
49#ifdef GetCharWidth
50#undef GetCharWidth
51#endif
52
53#ifdef StartDoc
54#undef StartDoc
55#endif
56
57#ifdef FindWindow
58#undef FindWindow
59#endif
60
61#ifdef FindResource
62#undef FindResource
63#endif
64
57c208c5
JS
65#ifdef LoadAccelerators
66#undef LoadAccelerators
67#endif
68
858f7d66 69#endif // WX_PRECOMP
c801d85f 70