]> git.saurik.com Git - wxWidgets.git/blob - include/wx/version.h
Derive wxScrollBar from wxScrollBarBase, plus miscellaneous
[wxWidgets.git] / include / wx / version.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/version.h
3 // Purpose: wxWindows version numbers
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 29/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) 1998 Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_VERSION_H_
13 #define _WX_VERSION_H_
14
15 // the constants below must be changed with each new version
16 // ----------------------------------------------------------------------------
17
18 // NB: this file is parsed by Perl code in tmake templates in distrib/msw/tmake
19 // so don't change its format too much or they could break
20 #define wxMAJOR_VERSION 2
21 #define wxMINOR_VERSION 5
22 #define wxRELEASE_NUMBER 0
23 #define wxVERSION_STRING _T("wxWindows 2.5.0")
24
25 // nothing to update below this line when updating the version
26 // ----------------------------------------------------------------------------
27
28 // helpers for wxVERSION_NUM_XXX
29 #define wxMAKE_VERSION_STRING(x, y, z) #x #y #z
30 #define wxMAKE_VERSION_DOT_STRING(x, y, z) #x "." #y "." #z
31
32 // these are used by src/msw/version.rc and should always be ASCII, not Unicode
33 #define wxVERSION_NUM_STRING \
34 wxMAKE_VERSION_STRING(wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
35 #define wxVERSION_NUM_DOT_STRING \
36 wxMAKE_VERSION_DOT_STRING(wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER)
37
38 // some more defines, not really sure if they're [still] useful
39 #define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
40 #define wxBETA_NUMBER 0
41 #define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
42
43 // check if the current version is at least major.minor.release
44 #define wxCHECK_VERSION(major,minor,release) \
45 (wxMAJOR_VERSION > (major) || \
46 (wxMAJOR_VERSION == (major) && wxMINOR_VERSION > (minor)) || \
47 (wxMAJOR_VERSION == (major) && wxMINOR_VERSION == (minor) && wxRELEASE_NUMBER >= (release)))
48
49 #endif // _WX_VERSION_H_
50