]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove Borland C++ compiler references
authorDon <don.j.olmstead@gmail.com>
Tue, 9 Jun 2020 16:57:05 +0000 (09:57 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 16 Jun 2020 13:58:04 +0000 (15:58 +0200)
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.

gzlib.c
zconf-ng.h.in
zconf.h.in

diff --git a/gzlib.c b/gzlib.c
index f449d2e06c29796739addd142382b63b6e34d237..2443965431fcfbc5a67635d4084a738a50d2c836 100644 (file)
--- a/gzlib.c
+++ b/gzlib.c
@@ -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
index c6c81f63387a7d058d28db8568afbac1fa2a6d03..032c53c01a962c6f85f3133c833d1f1ccd9e0c60 100644 (file)
@@ -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
index eef5207faea60b9c9cc2c2e1dbd67a6e700f2694..15ac26af4088ea1cd52f8646eaa5cb26fa62a9e2 100644 (file)
@@ -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