From 48dc201b058cd1ed724e0936b13f1a3a8d0bc90e Mon Sep 17 00:00:00 2001 From: "aaronleventhal@moonset.net" Date: Mon, 3 Dec 2007 11:00:28 -0800 Subject: [PATCH] Bug 401440. Fix _vsnprintf part of zlib VC9 compilation problem. r=wtc, a=dsicore --- modules/zlib/src/zutil.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/zlib/src/zutil.h b/modules/zlib/src/zutil.h index 8b26cefce3aa..f15580e550c3 100644 --- a/modules/zlib/src/zutil.h +++ b/modules/zlib/src/zutil.h @@ -8,7 +8,7 @@ subject to change. Applications should only use zlib.h. */ -/* @(#) $Id: zutil.h,v 3.10 2005/08/04 19:14:14 tor%cs.brown.edu Exp $ */ +/* @(#) $Id: zutil.h,v 3.11 2007/12/03 19:00:28 aaronleventhal%moonset.net Exp $ */ #ifndef ZUTIL_H #define ZUTIL_H @@ -175,7 +175,8 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */ /* functions */ -#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) +#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) || \ + (defined(_MSC_VER) && _MSC_VER >= 1500) # ifndef HAVE_VSNPRINTF # define HAVE_VSNPRINTF # endif