X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/588066b7a39629e44bb39f1ab436b80f38c13f33..d5bef0a32337a8e8b2666fd64f78dbbbf01cda3f:/include/wx/zstream.h diff --git a/include/wx/zstream.h b/include/wx/zstream.h index 1723d93702..74ece7fb5b 100644 --- a/include/wx/zstream.h +++ b/include/wx/zstream.h @@ -11,10 +11,6 @@ #ifndef _WX_WXZSTREAM_H__ #define _WX_WXZSTREAM_H__ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "zstream.h" -#endif - #include "wx/defs.h" #if wxUSE_ZLIB && wxUSE_STREAMS @@ -69,9 +65,10 @@ class WXDLLIMPEXP_BASE wxZlibInputStream: public wxFilterInputStream { class WXDLLIMPEXP_BASE wxZlibOutputStream: public wxFilterOutputStream { public: wxZlibOutputStream(wxOutputStream& stream, int level = -1, int flags = wxZLIB_ZLIB); - virtual ~wxZlibOutputStream(); + virtual ~wxZlibOutputStream() { Close(); } void Sync() { DoFlush(false); } + bool Close(); wxFileOffset GetLength() const { return m_pos; } static bool CanHandleGZip();