]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
snprintf() was added to Visual Studio 2015. 32/head
authorMika Lindqvist <postmaster@raasu.org>
Wed, 20 May 2015 19:57:56 +0000 (22:57 +0300)
committerMika Lindqvist <postmaster@raasu.org>
Fri, 22 May 2015 13:13:48 +0000 (16:13 +0300)
gzguts.h

index 2450775d443ff23594b715c3c0db8281bd509778..0d1ec1a0a40740ddc855a0b158f7307a08881cb2 100644 (file)
--- a/gzguts.h
+++ b/gzguts.h
@@ -57,7 +57,7 @@
    Microsoft more than a decade later!), _snprintf does not guarantee null
    termination of the result -- however this is only used in gzlib.c where
    the result is assured to fit in the space provided */
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && _MSC_VER < 1900
 #  define snprintf _snprintf
 #endif