security/nss/lib/zlib/patches/msvc-vsnprintf.patch

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 --- zlib-1.2.5/zutil.h 2010-04-18 12:29:24 -0700
michael@0 2 +++ zlib/zutil.h 2010-08-21 18:07:03 -0700
michael@0 3 @@ -172,17 +172,18 @@
michael@0 4 #endif
michael@0 5
michael@0 6 #ifndef F_OPEN
michael@0 7 # define F_OPEN(name, mode) fopen((name), (mode))
michael@0 8 #endif
michael@0 9
michael@0 10 /* functions */
michael@0 11
michael@0 12 -#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550)
michael@0 13 +#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) || \
michael@0 14 + (defined(_MSC_VER) && _MSC_VER >= 1500)
michael@0 15 # ifndef HAVE_VSNPRINTF
michael@0 16 # define HAVE_VSNPRINTF
michael@0 17 # endif
michael@0 18 #endif
michael@0 19 #if defined(__CYGWIN__)
michael@0 20 # ifndef HAVE_VSNPRINTF
michael@0 21 # define HAVE_VSNPRINTF
michael@0 22 # endif

mercurial