diff options
| author | mayeut <mayeut@users.noreply.github.com> | 2015-07-26 18:49:22 +0200 |
|---|---|---|
| committer | mayeut <mayeut@users.noreply.github.com> | 2015-07-26 18:49:23 +0200 |
| commit | 85904a3291e3c3364f41d0da473450bf1f0043f3 (patch) | |
| tree | 8587d8bb3f3d01d6a190165fed4b90b3b8e7a33a /thirdparty | |
| parent | 012f22958a0e7eb662a763f760fd829075bc8673 (diff) | |
Fix libtiff build with Visual Studio 2010
Diffstat (limited to 'thirdparty')
| -rw-r--r-- | thirdparty/libtiff/tif_config.h.cmake.in | 5 |
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 |
