[coding] Fixed Android ZLib build.

This commit is contained in:
Yuri Gorshenin 2017-01-31 11:48:17 +03:00
parent ae808a8825
commit 1b5f3db2b7

View file

@ -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);