From: Mika Lindqvist Date: Wed, 20 May 2015 19:57:56 +0000 (+0300) Subject: snprintf() was added to Visual Studio 2015. X-Git-Tag: 1.9.9-b1~817^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F32%2Fhead;p=thirdparty%2Fzlib-ng.git snprintf() was added to Visual Studio 2015. --- diff --git a/gzguts.h b/gzguts.h index 2450775d..0d1ec1a0 100644 --- 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