]> git.saurik.com Git - wxWidgets.git/blob - include/wx/version.h
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / include / wx / version.h
1 /*
2 * Name: wx/version.h
3 * Purpose: wxWidgets version numbers
4 * Author: Julian Smart
5 * Modified by: Ryan Norton (Converted to C)
6 * Created: 29/01/98
7 * Copyright: (c) 1998 Julian Smart
8 * Licence: wxWindows licence
9 */
10
11 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
12
13 #ifndef _WX_VERSION_H_
14 #define _WX_VERSION_H_
15
16 #include "wx/cpp.h" /* for wxSTRINGIZE */
17
18 /* the constants below must be changed with each new version */
19 /* ---------------------------------------------------------------------------- */
20
21 /*
22 Don't forget to update WX_CURRENT, WX_REVISION and WX_AGE in
23 build/bakefiles/version.bkl and regenerate the makefiles when you change
24 this!
25 */
26
27 /* NB: this file is parsed by automatic tools so don't change its format! */
28 #define wxMAJOR_VERSION 3
29 #define wxMINOR_VERSION 0
30 #define wxRELEASE_NUMBER 0
31 #define wxSUBRELEASE_NUMBER 0
32 #define wxVERSION_STRING wxT("wxWidgets 3.0.0 RC1")
33
34 /* nothing to update below this line when updating the version */
35 /* ---------------------------------------------------------------------------- */
36
37 /* Users can pre-define wxABI_VERSION to a lower value in their
38 * makefile/project settings to compile code that will be binary compatible
39 * with earlier versions of the ABI within the same minor version (between
40 * minor versions binary compatibility breaks anyway). The default is the
41 * version of wxWidgets being used. A single number with two decimal digits
42 * for each component, e.g. 20601 for 2.6.1 */
43 #ifndef wxABI_VERSION
44 #define wxABI_VERSION ( wxMAJOR_VERSION * 10000 + wxMINOR_VERSION * 100 + 99 )
45 #endif
46
47 /* helpers for wxVERSION_NUM_XXX */
48 #define wxMAKE_VERSION_STRING(x, y, z) \
49 wxSTRINGIZE(x) wxSTRINGIZE(y) wxSTRINGIZE(z)
50 #define wxMAKE_VERSION_DOT_STRING(x, y, z) \
51 wxSTRINGIZE(x) "." wxSTRINGIZE(y) "." wxSTRINGIZE(z)
52
53 #define wxMAKE_VERSION_STRING_T(x, y, z) \
54 wxSTRINGIZE_T(x) wxSTRINGIZE_T(y) wxSTRINGIZE_T(z)
55 #define wxMAKE_VERSION_DOT_STRING_T(x, y, z) \
56 wxSTRINGIZE_T(x) wxT(".") wxSTRINGIZE_T(y) wxT(".") wxSTRINGIZE_T(z)
57
58 /* these are used by src/msw/version.rc and should always be ASCII, not Unicode */
59 #define wxVERSION_NUM_STRING \
60 wxMAKE_VERSION_STRING(wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
61 #define wxVERSION_NUM_DOT_STRING \
62 wxMAKE_VERSION_DOT_STRING(wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
63
64 /* those are Unicode-friendly */
65 #define wxVERSION_NUM_STRING_T \
66 wxMAKE_VERSION_STRING_T(wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
67 #define wxVERSION_NUM_DOT_STRING_T \
68 wxMAKE_VERSION_DOT_STRING_T(wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
69
70 /* some more defines, not really sure if they're [still] useful */
71 #define wxVERSION_NUMBER ( (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER )
72 #define wxBETA_NUMBER 0
73 #define wxVERSION_FLOAT ( wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0) )
74
75 /* check if the current version is at least major.minor.release */
76 #define wxCHECK_VERSION(major,minor,release) \
77 (wxMAJOR_VERSION > (major) || \
78 (wxMAJOR_VERSION == (major) && wxMINOR_VERSION > (minor)) || \
79 (wxMAJOR_VERSION == (major) && wxMINOR_VERSION == (minor) && wxRELEASE_NUMBER >= (release)))
80
81 /* the same but check the subrelease also */
82 #define wxCHECK_VERSION_FULL(major,minor,release,subrel) \
83 (wxCHECK_VERSION(major, minor, release) && \
84 ((major) != wxMAJOR_VERSION || \
85 (minor) != wxMINOR_VERSION || \
86 (release) != wxRELEASE_NUMBER || \
87 (subrel) <= wxSUBRELEASE_NUMBER))
88
89 #endif /* _WX_VERSION_H_ */
90