]> git.saurik.com Git - wxWidgets.git/blame - include/wx/version.h
renamed wxWindow::Clear() to ClearBackground() (fixes bug 783576)
[wxWidgets.git] / include / wx / version.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
f6bcfd97 2// Name: wx/version.h
c801d85f
KB
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
371a5b4e 9// Licence: wxWindows licence
c801d85f
KB
10/////////////////////////////////////////////////////////////////////////////
11
1fd4a033
VZ
12#ifndef _WX_VERSION_H_
13#define _WX_VERSION_H_
c801d85f 14
c0589c62
VZ
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
c801d85f 20#define wxMAJOR_VERSION 2
c31752da
JS
21#define wxMINOR_VERSION 5
22#define wxRELEASE_NUMBER 0
23#define wxVERSION_STRING _T("wxWindows 2.5.0")
1fd4a033 24
c0589c62
VZ
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
1fd4a033 31
c0589c62
VZ
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)
1fd4a033 37
c0589c62 38// some more defines, not really sure if they're [still] useful
c801d85f 39#define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
d5a07b9e 40#define wxBETA_NUMBER 0
3f1af920 41#define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
c801d85f 42
f6bcfd97
BP
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
1fd4a033
VZ
49#endif // _WX_VERSION_H_
50