Skip to content

Commit

Permalink
Remove Borland C++ compiler references
Browse files Browse the repository at this point in the history
There are a few guards checking for Borland C++ 5.0 or greater which was released
in 1996. While there is still a descendent of this compiler in Embarcadero C++ Builder
its value for __BORLANDC__ is greater than 0x500 so it is safe to remove these guards.
  • Loading branch information
donny-dont authored and Dead2 committed Jun 16, 2020
1 parent ee28753 commit d0ac492
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gzlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "zbuild.h"
#include "gzguts.h"

#if defined(_WIN32) && !defined(__BORLANDC__)
#if defined(_WIN32)
# define LSEEK _lseeki64
#else
#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
Expand Down
2 changes: 1 addition & 1 deletion zconf-ng.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
/* If building or using zlib as a DLL, define ZLIB_DLL.
* This is not mandatory, but it offers a little performance increase.
*/
# if defined(ZLIB_DLL) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
# if defined(ZLIB_DLL)
# ifdef ZLIB_INTERNAL
# define ZEXTERN extern __declspec(dllexport)
# else
Expand Down
2 changes: 1 addition & 1 deletion zconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
/* If building or using zlib as a DLL, define ZLIB_DLL.
* This is not mandatory, but it offers a little performance increase.
*/
# if defined(ZLIB_DLL) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
# if defined(ZLIB_DLL)
# ifdef ZLIB_INTERNAL
# define ZEXTERN extern __declspec(dllexport)
# else
Expand Down

0 comments on commit d0ac492

Please sign in to comment.