Skip to content

Commit

Permalink
Facilitate compilation with Borland C++ for pragmas and vsnprintf.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Nov 19, 2011
1 parent 6715208 commit 15b5671
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions gzguts.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
# 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?),
Expand Down
2 changes: 1 addition & 1 deletion zutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15b5671

Please sign in to comment.