From 3fb251b363866417122fe54a158a1ac5a7837101 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Wed, 21 Sep 2016 20:07:37 -0700 Subject: 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." --- zconf.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'zconf.h') diff --git a/zconf.h b/zconf.h index 9987a77..0a4828e 100644 --- a/zconf.h +++ b/zconf.h @@ -224,11 +224,6 @@ # define z_const #endif -/* Some Mac compilers merge all .h files incorrectly: */ -#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__) -# define NO_DUMMY_DECL -#endif - /* Maximum value for memLevel in deflateInit2 */ #ifndef MAX_MEM_LEVEL # ifdef MAXSEG_64K -- cgit v1.2.3-55-g6feb