diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2016-09-21 20:07:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2016-09-21 20:34:04 -0700 |
commit | 3fb251b363866417122fe54a158a1ac5a7837101 (patch) | |
tree | a4cd8da8fa279c66c533b0008192cb8da55bd5e0 /zconf.h | |
parent | 33a7aff45da511c3fc181071394ad9a01d5e8d61 (diff) | |
download | zlib-3fb251b363866417122fe54a158a1ac5a7837101.tar.gz zlib-3fb251b363866417122fe54a158a1ac5a7837101.tar.bz2 zlib-3fb251b363866417122fe54a158a1ac5a7837101.zip |
Remove dummy structure declarations for old buggy compilers.
While woolly mammoths still roamed the Earth and before Atlantis
sunk into the ocean, there were C compilers that could not handle
forward structure references, e.g. "struct name;". zlib dutifully
provided a work-around for such compilers. That work-around is no
longer needed, and, per the recommendation of a security audit of
the zlib code by Trail of Bits and TrustInSoft, in support of the
Mozilla Foundation, should be removed since what a compiler will
do with this is technically undefined. From the report: "there is
no telling what interactions the bug could have in the future with
link-time optimizations and type-based alias analyses, both
features that are present (but not default) in clang."
Diffstat (limited to 'zconf.h')
-rw-r--r-- | zconf.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -224,11 +224,6 @@ | |||
224 | # define z_const | 224 | # define z_const |
225 | #endif | 225 | #endif |
226 | 226 | ||
227 | /* Some Mac compilers merge all .h files incorrectly: */ | ||
228 | #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__) | ||
229 | # define NO_DUMMY_DECL | ||
230 | #endif | ||
231 | |||
232 | /* Maximum value for memLevel in deflateInit2 */ | 227 | /* Maximum value for memLevel in deflateInit2 */ |
233 | #ifndef MAX_MEM_LEVEL | 228 | #ifndef MAX_MEM_LEVEL |
234 | # ifdef MAXSEG_64K | 229 | # ifdef MAXSEG_64K |