]> git.saurik.com Git - wxWidgets.git/blame - include/wx/setup.h
Committing in .
[wxWidgets.git] / include / wx / setup.h
CommitLineData
72cdf4c9
VZ
1/*
2 * The main configuration file for wxWindows.
3 *
4 * NB: this file can be included in .c files, so it must be compileable by a C
5 * compiler - use #ifdef __cplusplus for C++ specific features and avoid
6 * using C++ style comments
7 */
c801d85f 8
34138703
JS
9#ifndef _WX_SETUP_H_BASE_
10#define _WX_SETUP_H_BASE_
c801d85f 11
c67daf87 12/* compatibility code, to be removed asap: */
2049ba38 13
1777b9bb 14#if !defined(__WXMSW__) && !defined(__WXGTK__) && !defined(__WXMOTIF__) && !defined(__WXQT__) && !defined(__WXSTUBS__) && !defined(__WXMAC__) && !defined(__WXPM__)
72cdf4c9 15#error No __WXxxx__ define set! Please define one of __WXGTK__,__WXMSW__,__WXMOTIF__,__WXMAC__,__WXQT__,__WXPM__,__WXSTUBS__
2049ba38
KB
16#endif
17
4900c039
JJ
18#ifdef __VMS
19#include "[--]setup.h"
20#elif
2049ba38 21#if defined(__WXMSW__)
c801d85f 22#include "wx/msw/setup.h"
34138703
JS
23#elif defined(__WXMAC__)
24#include "wx/mac/setup.h"
25#elif defined(__WXQT__)
26#include "wx/qt/setup.h"
27#elif defined(__WXMOTIF__)
28#include "wx/motif/setup.h"
1777b9bb
DW
29#elif defined(__WXPM__)
30#include "wx/os2/setup.h"
34138703
JS
31#elif defined(__WXSTUBS__)
32#include "wx/stubs/setup.h"
33#elif defined(__WXGTK__)
c98f0421 34#include "wx/gtk/setup.h"
c801d85f 35#endif
4900c039 36#endif
c801d85f 37
72cdf4c9
VZ
38/*
39 * Compatibility defines: note that, in general, there is a a reason for not
40 * compatible changes, so you should try to avoid defining WXWIN_COMPATIBILITY
41 * and do so only if your program really can't be compiled otherwise.
42 */
43
44/*
45 * Compatibility with 1.66 API.
46 * Level 0: no backward compatibility, all new features
47 * Level 1: wxDC, OnSize (etc.) compatibility, but
48 * some new features such as event tables
49 */
50#define WXWIN_COMPATIBILITY 0
51
52/*
53 * wxWindows 2.0 API compatibility. Possible values are:
54 * 0: no backwards compatibility
55 * 1: some backwards compatibility, but if it conflicts with the new
56 * features, use the new code, not the old one
57 * 2: maximum backwards compatiblity: even if compatibility can only be
58 * achieved by disabling new features, do it.
59 */
60#define WXWIN_COMPATIBILITY_2 1
61
62/*
63 * wxWindows 2.0 uses long for wxPoint/wxRect/wxSize member fields and wxDC
64 * method arguments, wxWindows 2.1 and later uses wxCoord typedef which is
65 * usually int. Using long leads to (justified) warnings about long to int
66 * conversions from some compilers and is, generally speaking, unneeded.
67 */
68#define wxUSE_COMPATIBLE_COORD_TYPES 0
69
70/*
71 * Maximum compatibility with 2.0 API
72 */
73#if WXWIN_COMPATIBILITY_2 == 2
74#undef wxUSE_COMPATIBLE_COORD_TYPES
75#define wxUSE_COMPATIBLE_COORD_TYPES 1
76#endif /* WXWIN_COMPATIBILITY_2_MAX */
77
c801d85f 78#endif
c67daf87 79 /* _WX_SETUP_H_BASE_ */