From: Vadim Zeitlin Date: Wed, 29 Feb 2012 22:40:24 +0000 (+0000) Subject: Recognize MSVC 11 instead of warning about unknown MSVC version. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7eb02e44ba97996c38be469d3bfd589457a7567d Recognize MSVC 11 instead of warning about unknown MSVC version. Define __VISUALC11__ for it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/doxygen/mainpages/const_cpp.h b/docs/doxygen/mainpages/const_cpp.h index df36b10e62..9c71d03efa 100644 --- a/docs/doxygen/mainpages/const_cpp.h +++ b/docs/doxygen/mainpages/const_cpp.h @@ -167,7 +167,7 @@ compiler used. @c 1020 for @c 4.2 (the first supported version), @c 1100 for @c 5.0, @c 1200 for @c 6.0 and so on. For convenience, the symbols __VISUALCn__ are also defined for each major compiler version from - 5 to 10, i.e. you can use tests such @ifdef_ __VISUALC7__ to test + 5 to 11, i.e. you can use tests such @ifdef_ __VISUALC7__ to test for compiler version being precisely 7.} @itemdef{__XLC__, AIX compiler} @itemdef{__WATCOMC__, Watcom C++. The value of this macro corresponds to diff --git a/include/wx/platform.h b/include/wx/platform.h index 1305a3ceb5..7feddf3609 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -469,6 +469,8 @@ # define __VISUALC9__ # elif __VISUALC__ < 1700 # define __VISUALC10__ +# elif __VISUALC__ < 1800 +# define __VISUALC11__ # else # pragma message("Please update wx/platform.h to recognize this VC++ version") # endif