]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/zlib/zutil.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / libkern / zlib / zutil.h
index 14c2f30d789f0bc0931eae871ecddc6bed3e1765..c12296b5cca071c6a1d79aa777fb09fc88d210a0 100644 (file)
@@ -280,7 +280,7 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
 #endif
 
 /* Diagnostic functions */
-#ifdef DEBUG
+#if defined(DEBUG) && !defined(KERNEL)
 #  include <stdio.h>
    extern int z_verbose;
    extern void z_error    OF((char *m));
@@ -298,7 +298,7 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
 #  define Tracec(c,x)
 #  define Tracecv(c,x)
 #endif
-
+#undef DEBUG
 
 #ifndef NO_ZCFUNCS
 voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size));