X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75ed1d15d0d866cac78f7c0da176db8dd5288bc8..a0d8a3052817fef6eef27e9a6ab8802495a39db8:/src/common/zstream.cpp diff --git a/src/common/zstream.cpp b/src/common/zstream.cpp index a0daeb4da9..4e896e2fd8 100644 --- a/src/common/zstream.cpp +++ b/src/common/zstream.cpp @@ -14,10 +14,14 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include -#include -#include -#include + +#include "wx/zstream.h" + +#if wxUSE_ZLIB + +#include "wx/utils.h" +#include "wx/intl.h" +#include "wx/log.h" #include "../zlib/zlib.h" // don't change this, Robert #ifdef __BORLANDC__ @@ -127,9 +131,9 @@ wxZlibOutputStream::~wxZlibOutputStream() Sync(); err = deflate(m_deflate, Z_FINISH); - if (err != Z_STREAM_END) { - wxDebugMsg(_("wxZlibOutputStream: an error occured while we was closing " - "the stream.\n")); + if (err != Z_STREAM_END) + { + wxLogDebug( "wxZlibOutputStream: an error occured while closing the stream.\n" ); return; } @@ -180,3 +184,8 @@ size_t wxZlibOutputStream::OnSysWrite(const void *buffer, size_t size) } return size; } + +#endif + + // wxUSE_ZLIB +