summaryrefslogtreecommitdiff
path: root/zlib
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-01-23 03:22:53 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-01-23 03:22:53 +0200
commit047e32a694fba1b1e5a7f30bfd3268cb08180364 (patch)
treec60856637fd72a8fcf2ebc9ced92f91e254cb1c9 /zlib
parent824203a372974b1d416f2b27e36afc5478c01bd8 (diff)
Define HAVE_VSNPRINTF for MSVC
Diffstat (limited to 'zlib')
-rw-r--r--zlib/zlib-1.2.3.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/zlib/zlib-1.2.3.patch b/zlib/zlib-1.2.3.patch
index 5e2b69535e5e..4bfad287c231 100644
--- a/zlib/zlib-1.2.3.patch
+++ b/zlib/zlib-1.2.3.patch
@@ -90,3 +90,14 @@
#ifdef Z_PREFIX
# define deflateInit_ z_deflateInit_
# define deflate z_deflate
+--- misc/zlib-1.2.3/zutil.h
++++ misc/build/zlib-1.2.3/zutil.h
+@@ -175,7 +175,7 @@
+
+ /* functions */
+
+-#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550)
++#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) || defined(_MSC_VER)
+ # ifndef HAVE_VSNPRINTF
+ # define HAVE_VSNPRINTF
+ # endif