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