]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
fix for preprocessor namespace pollution 54/head
authorMat <mberchtold@gmail.com>
Fri, 30 Oct 2015 09:39:02 +0000 (10:39 +0100)
committerMat <mberchtold@gmail.com>
Fri, 30 Oct 2015 09:39:02 +0000 (10:39 +0100)
commit596ea9ea209040b6f3b8496cb5616f5c552ba332
treee9c1bd3f765dec32c3178190a51d9e2df91e1d5d
parentb971b6c508822d094cc974f0f22ba68145e0abf7
fix for preprocessor namespace pollution

Do not pollute the namespace with a define for byte. This breaks various things. Instead use typedef which was also used in the original version of zlib.conf:

#if !defined(__MACTYPES__)
typedef unsigned char  Byte;  /* 8 bits */
#endif
typedef unsigned int   uInt;  /* 16 bits or more */
typedef unsigned long  uLong; /* 32 bits or more */

#ifdef SMALL_MEDIUM
   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
#  define Bytef Byte FAR
#else
   typedef Byte  FAR Bytef;
#endif
zconf.h.in