home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / include / wx / version.h < prev    next >
C/C++ Source or Header  |  2002-12-05  |  2KB  |  40 lines

  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: version.h,v 1.31.2.2 2002/12/05 11:50:59 JS Exp $
  8. // Copyright:   (c) 1998 Julian Smart
  9. // Licence:     wxWindows license
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef _WX_VERSION_H_
  13. #define _WX_VERSION_H_
  14.  
  15. // Bump-up with each new version
  16. #define wxMAJOR_VERSION    2
  17. #define wxMINOR_VERSION    4
  18. #define wxRELEASE_NUMBER   0
  19. #define wxVERSION_STRING   _T("wxWindows 2.4.0")
  20.  
  21. // These are used by src/msw/version.rc and should always be ASCII, not Unicode
  22. // and must be updated manually as well each time the version above changes
  23. #define wxVERSION_NUM_DOT_STRING   "2.4.0"
  24. #define wxVERSION_NUM_STRING       "240"
  25.  
  26. // nothing should be updated below this line when updating the version
  27.  
  28. #define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
  29. #define wxBETA_NUMBER      0
  30. #define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
  31.  
  32. // check if the current version is at least major.minor.release
  33. #define wxCHECK_VERSION(major,minor,release) \
  34.     (wxMAJOR_VERSION > (major) || \
  35.     (wxMAJOR_VERSION == (major) && wxMINOR_VERSION > (minor)) || \
  36.     (wxMAJOR_VERSION == (major) && wxMINOR_VERSION == (minor) && wxRELEASE_NUMBER >= (release)))
  37.  
  38. #endif // _WX_VERSION_H_
  39.  
  40.