mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 14:09:06 +00:00
Don't use internal zlib headers.
Thanks Henrik Holst for pointing.
This commit is contained in:
parent
faf4023b5d
commit
0fbd5d81ae
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue