From 6c00a3ed36f02d6411628fc7cf3208f6aa74f7f2 Mon Sep 17 00:00:00 2001 From: Mika Lindqvist Date: Wed, 20 May 2015 22:57:56 +0300 Subject: [PATCH] snprintf() was added to Visual Studio 2015. --- gzguts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2