From 8add533eb22ba0756f5b426f77ee593bc1aa6fcd Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 5 Apr 2005 14:56:08 +0000 Subject: [PATCH] Incomplete setup build fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/zipstrm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/zipstrm.cpp b/src/common/zipstrm.cpp index eacd2b1d9c..37448574f6 100644 --- a/src/common/zipstrm.cpp +++ b/src/common/zipstrm.cpp @@ -1930,14 +1930,18 @@ bool wxZipOutputStream::DoCreate(wxZipEntry *entry, bool raw /*=false*/) // and if this is the first entry test for seekability if (m_headerOffset == 0 && m_parent_o_stream->IsSeekable()) { +#if wxUSE_LOG bool logging = wxLog::IsEnabled(); wxLogNull nolog; +#endif // wxUSE_LOG wxFileOffset here = m_parent_o_stream->TellO(); if (here != wxInvalidOffset && here >= 4) { if (m_parent_o_stream->SeekO(here - 4) == here - 4) { m_offsetAdjustment = here - 4; +#if wxUSE_LOG wxLog::EnableLogging(logging); +#endif // wxUSE_LOG m_parent_o_stream->SeekO(here); } } -- 2.45.2