diff options
author | Nathan Moinvaziri <nathan@nathanm.com> | 2021-03-17 21:19:18 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-03-18 22:51:59 +0100 |
commit | bc33b26ca5391eb6b2c952cd032920033be27a53 (patch) | |
tree | c4d47a46b7c4864f2ebd0f9044db5e2d3ca5b8b9 /zlib.h | |
parent | 9b2baa8217c31e869c0ba53bbb458cd3ef040d00 (diff) |
Added preprocessor error guards to ensure proper library usage.
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -30,10 +30,18 @@ (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ +#ifdef ZNGLIB_H_ +# error Include zlib-ng.h for zlib-ng API or zlib.h for zlib-compat API but not both +#endif + #include <stdint.h> #include <stdarg.h> #include "zconf.h" +#ifndef ZCONF_H +# error Missing zconf.h add binary output directory to include directories +#endif + #ifdef __cplusplus extern "C" { #endif |