aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-07-31 11:13:05 -0400
committerJack Lloyd <[email protected]>2017-07-31 11:13:05 -0400
commitbc6ba3eb4bb10c45c9d14c3697579fa29b059b39 (patch)
treed140d5232d485b8aa144e57be05d9683f8c699f3 /src/build-data
parentf215d4f7a6a6d8fe1d77773a043c8f75ec7bd646 (diff)
parentd4bd603b061a46ff47cfc6ce992ded4b229b26d6 (diff)
Merge GH #1133 Fix MSVC compiler detection fixing #1125
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/compiler_detection/msvc_version.c8
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