forked from organicmaps/organicmaps
[coding] Fixed Android ZLib build.
This commit is contained in:
parent
ae808a8825
commit
1b5f3db2b7
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "coding/zlib.hpp"
|
||||
|
||||
#include "std/target_os.hpp"
|
||||
|
||||
namespace coding
|
||||
{
|
||||
namespace
|
||||
|
@ -57,6 +59,7 @@ ZLib::DeflateProcessor::DeflateProcessor(void const * data, size_t size, ZLib::L
|
|||
|
||||
ZLib::DeflateProcessor::~DeflateProcessor() noexcept
|
||||
{
|
||||
#if !defined(OMIM_OS_ANDROID)
|
||||
unsigned bytes = 0;
|
||||
int bits = 0;
|
||||
int const ret = deflatePending(&m_stream, &bytes, &bits);
|
||||
|
@ -64,6 +67,7 @@ ZLib::DeflateProcessor::~DeflateProcessor() noexcept
|
|||
ASSERT_EQUAL(ret, Z_OK, ());
|
||||
ASSERT_EQUAL(bytes, 0, (bytes, "bytes were not flushed"));
|
||||
ASSERT_EQUAL(bits, 0, (bits, "bits were not flushed"));
|
||||
#endif
|
||||
|
||||
if (m_init)
|
||||
deflateEnd(&m_stream);
|
||||
|
|
Loading…
Add table
Reference in a new issue