1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 05:59:16 +00:00

Don't use internal zlib headers.

Thanks Henrik Holst for pointing.
This commit is contained in:
fgenesis 2012-05-21 03:43:15 +02:00
parent faf4023b5d
commit 0fbd5d81ae

View file

@ -1,6 +1,5 @@
#include "Base.h" #include "Base.h"
#include <zutil.h>
#include <zlib.h> #include <zlib.h>
#include "DeflateCompressor.h" #include "DeflateCompressor.h"
@ -39,7 +38,7 @@ void DeflateCompressor::compress(void* dst, uint32 *dst_size, const void* src, u
c_stream.zfree = (free_func)Z_NULL; c_stream.zfree = (free_func)Z_NULL;
c_stream.opaque = (voidpf)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; *dst_size = 0;
return; return;