Commits

False.Genesis  committed bb4d19a

Don't use internal zlib headers.

Thanks Henrik Holst for pointing.

  • Participants
  • Parent commits 3f3b289

Comments (0)

Files changed (1)

File BBGE/DeflateCompressor.cpp

 #include "Base.h"
 
-#include <zutil.h>
 #include <zlib.h>
 
 #include "DeflateCompressor.h"
     c_stream.zfree = (free_func)Z_NULL;
     c_stream.opaque = (voidpf)Z_NULL;
 
-    if (Z_OK != deflateInit2(&c_stream, level, Z_DEFLATED, wbits, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY))
+    if (Z_OK != deflateInit2(&c_stream, level, Z_DEFLATED, wbits, 8, Z_DEFAULT_STRATEGY))
     {
         *dst_size = 0;
         return;