Help: Clarify MSVC and MSVC_VERSION variables

The current documentation doesn't clarify that compilers simulating
Visual C++ will also have these variables set.
This commit is contained in:
Christian Pfeiffer
2018-01-31 18:20:13 +01:00
committed by Brad King
parent a0c04e71eb
commit efe22af20e
2 changed files with 6 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
MSVC
----
``True`` when using Microsoft Visual C++.
Set to ``true`` when the compiler is some version of Microsoft Visual C++.
Set to ``true`` when the compiler is some version of Microsoft Visual
C++ or another compiler simulating Visual C++. Any compiler defining
``_MSC_VER`` is considered simulating Visual C++.
See also the :variable:`MSVC_VERSION` variable.

View File

@@ -2,6 +2,9 @@ MSVC_VERSION
------------
The version of Microsoft Visual C/C++ being used if any.
If a compiler simulating Visual C++ is being used, this variable is set
to the toolset version simulated as given by the ``_MSC_VER``
preprocessor definition.
Known version numbers are::