define __VISUALCn__ for n=5,6,7,8,9 and not only 8 (should have been part of r51353)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -464,6 +464,27 @@
|
|||||||
*/
|
*/
|
||||||
# if defined(_MSC_VER) && !defined(__MWERKS__)
|
# if defined(_MSC_VER) && !defined(__MWERKS__)
|
||||||
# define __VISUALC__ _MSC_VER
|
# define __VISUALC__ _MSC_VER
|
||||||
|
|
||||||
|
/*
|
||||||
|
define special symbols for different VC version instead of writing tests
|
||||||
|
for magic numbers such as 1200, 1300 &c repeatedly
|
||||||
|
*/
|
||||||
|
# if __VISUALC__ < 1100
|
||||||
|
# error "This Visual C++ version is too old and not supported any longer."
|
||||||
|
# elif __VISUALC__ < 1200
|
||||||
|
# define __VISUALC5__
|
||||||
|
# elif __VISUALC__ < 1300
|
||||||
|
# define __VISUALC6__
|
||||||
|
# elif __VISUALC__ < 1400
|
||||||
|
# define __VISUALC7__
|
||||||
|
# elif __VISUALC__ < 1500
|
||||||
|
# define __VISUALC8__
|
||||||
|
# elif __VISUALC__ < 1600
|
||||||
|
# define __VISUALC9__
|
||||||
|
# else
|
||||||
|
# pragma message("Please update this code for the next VC++ version")
|
||||||
|
# endif
|
||||||
|
|
||||||
# elif defined(__BCPLUSPLUS__) && !defined(__BORLANDC__)
|
# elif defined(__BCPLUSPLUS__) && !defined(__BORLANDC__)
|
||||||
# define __BORLANDC__
|
# define __BORLANDC__
|
||||||
# elif defined(__WATCOMC__)
|
# elif defined(__WATCOMC__)
|
||||||
|
@@ -138,13 +138,6 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter<wxDateTime> , wxFromStringCon
|
|||||||
#include <wtime.h>
|
#include <wtime.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// define a special symbol for VC8 instead of writing tests for 1400 repeatedly
|
|
||||||
#ifdef __VISUALC__
|
|
||||||
#if __VISUALC__ >= 1400
|
|
||||||
#define __VISUALC8__
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(WX_TIMEZONE) && !defined(WX_GMTOFF_IN_TM)
|
#if !defined(WX_TIMEZONE) && !defined(WX_GMTOFF_IN_TM)
|
||||||
#if defined(__WXPALMOS__)
|
#if defined(__WXPALMOS__)
|
||||||
#define WX_GMTOFF_IN_TM
|
#define WX_GMTOFF_IN_TM
|
||||||
|
Reference in New Issue
Block a user