]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/version.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWindows version numbers
4 // Author: Julian Smart
8 // Copyright: (c) 1998 Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_VERSIONH__
13 #define _WX_VERSIONH__
15 // Bump-up with each new version
16 #define wxMAJOR_VERSION 2
17 #define wxMINOR_VERSION 2
18 #define wxRELEASE_NUMBER 1
19 #define wxVERSION_STRING _T("wxWindows 2.2.1")
20 #define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
21 #define wxBETA_NUMBER 0
22 #define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
24 // check if the current version is at least major.minor.release
25 #define wxCHECK_VERSION(major,minor,release) \
26 (wxMAJOR_VERSION > (major) || \
27 (wxMAJOR_VERSION == (major) && wxMINOR_VERSION > (minor)) || \
28 (wxMAJOR_VERSION == (major) && wxMINOR_VERSION == (minor) && wxRELEASE_NUMBER >= (release)))