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

http://github.com/zpao/v8monkey · Patch · 22 lines · 19 code · 3 blank · 0 comment · 0 complexity · 08aa8baf98364cff9cabca6eb22f9c07 MD5 · raw file

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