]> git.lizzy.rs Git - zlib.git/commitdiff
Facilitate compilation with Borland C++ for pragmas and vsnprintf.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 19 Nov 2011 07:14:14 +0000 (23:14 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 19 Nov 2011 21:53:26 +0000 (13:53 -0800)
gzguts.h
zutil.h

index 4d71db06e42567c92365f3be5693d909b0c02141..88e2bc27969412556463e5921476a0bd18fe0457 100644 (file)
--- a/gzguts.h
+++ b/gzguts.h
 #  endif
 #endif
 
+#if defined(MSDOS) && defined(__BORLANDC__) && (BORLANDC > 0x410)
+#  ifndef HAVE_VSNPRINTF
+#    define HAVE_VSNPRINTF
+#  endif
+#endif
+
 #ifndef HAVE_VSNPRINTF
 #  ifdef MSDOS
 /* vsnprintf may exist on some MS-DOS compilers (DJGPP?),
diff --git a/zutil.h b/zutil.h
index 634ce34e63c558577054abad4f99d0d0d726b4b1..3b8e5319bea4b2ddb383bc6ded90ddc2fb605b2c 100644 (file)
--- a/zutil.h
+++ b/zutil.h
@@ -161,7 +161,7 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
 #  endif
 #endif
 
-#if defined(__BORLANDC__)
+#if defined(__BORLANDC__) && !defined(MSDOS)
   #pragma warn -8004
   #pragma warn -8008
   #pragma warn -8066