X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3069ac4e452f98644f9cdcae52a36ed9b9a93a31..c17bcb844883451b564446bf7843e7b3f862fe48:/src/common/zstream.cpp diff --git a/src/common/zstream.cpp b/src/common/zstream.cpp index 110199eda6..09953c87d1 100644 --- a/src/common/zstream.cpp +++ b/src/common/zstream.cpp @@ -8,23 +8,30 @@ // Copyright: (c) Guilhem Lavaux // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// + #ifdef __GNUG__ #pragma implementation "zstream.h" #endif // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include -#include -#include -#include -#include "wx/log.h" -#include "../zlib/zlib.h" // don't change this, Robert #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif +#ifndef WX_PRECOMP + #include "wx/defs.h" +#endif + +#if wxUSE_ZLIB && wxUSE_STREAMS + +#include "wx/zstream.h" +#include "wx/utils.h" +#include "wx/intl.h" +#include "wx/log.h" +#include "zlib.h" + #define ZSTREAM_BUFFER_SIZE 1024 ////////////////////// @@ -130,7 +137,7 @@ wxZlibOutputStream::~wxZlibOutputStream() err = deflate(m_deflate, Z_FINISH); if (err != Z_STREAM_END) { - wxLogDebug( "wxZlibOutputStream: an error occured while closing the stream.\n" ); + wxLogDebug( _T("wxZlibOutputStream: an error occured while closing the stream.\n") ); return; } @@ -181,3 +188,7 @@ size_t wxZlibOutputStream::OnSysWrite(const void *buffer, size_t size) } return size; } + +#endif + // wxUSE_ZLIB && wxUSE_STREAMS +