From 85904a3291e3c3364f41d0da473450bf1f0043f3 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 26 Jul 2015 18:49:22 +0200 Subject: [PATCH] Fix libtiff build with Visual Studio 2010 --- thirdparty/libtiff/tif_config.h.cmake.in | 5 +++++ 1 file changed, 5 insertions(+) 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