summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thirdparty/libtiff/tif_config.h.cmake.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/thirdparty/libtiff/tif_config.h.cmake.in b/thirdparty/libtiff/tif_config.h.cmake.in
index 455e7b32..a556f3c4 100644
--- a/thirdparty/libtiff/tif_config.h.cmake.in
+++ b/thirdparty/libtiff/tif_config.h.cmake.in
@@ -380,6 +380,11 @@
/* Define to empty if `const' does not conform to ANSI C. */
#cmakedefine const
+/* Visual Studio 2015 / VC 14 / MSVC 19.00 finally has snprintf() */
+#if defined(_MSC_VER) && _MSC_VER < 1900
+#define snprintf _snprintf
+#endif
+
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus