diff options
author | Simon Warta <[email protected]> | 2017-07-30 01:25:30 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-07-30 01:25:30 +0200 |
commit | d4bd603b061a46ff47cfc6ce992ded4b229b26d6 (patch) | |
tree | 9c0ad5f6bdb50a29089013dd8d588562f5b6aadd /src/build-data/compiler_detection/msvc_version.c | |
parent | 436c1c99adc505d68ebd2674345d3ffc110bf2f6 (diff) |
Use _MSC_VER to get MSVC version
Diffstat (limited to 'src/build-data/compiler_detection/msvc_version.c')
-rw-r--r-- | src/build-data/compiler_detection/msvc_version.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/build-data/compiler_detection/msvc_version.c b/src/build-data/compiler_detection/msvc_version.c new file mode 100644 index 000000000..054f69d28 --- /dev/null +++ b/src/build-data/compiler_detection/msvc_version.c @@ -0,0 +1,8 @@ +// _MSC_VER Defined as an integer literal that encodes the major and minor +// number elements of the compiler's version number. The major number is +// the first element of the period-delimited version number and the minor +// number is the second element. For example, if the version number of the +// Visual C++ compiler is 17.00.51106.1, the _MSC_VER macro evaluates to 1700. +// https://msdn.microsoft.com/en-us/library/b0084kay.aspx + +_MSC_VER |