]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/zstream.cpp
* wxSocket seems to work with the async requester turned off.
[wxWidgets.git] / src / common / zstream.cpp
index a0daeb4da9f6f7dbe10cd31dd1760a8c49626503..90d3338161b54add68663b2143a34a573d36e193 100644 (file)
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
-#include <wx/stream.h>
-#include <wx/zstream.h>
-#include <wx/utils.h>
-#include <wx/intl.h>
+
+#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( _T("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
+