From f561a4e09c7e0fbdd7228a7bc3f8024163d44a85 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 19 Jun 2003 23:43:01 +0000 Subject: [PATCH] removed redundant wxUSE_GUI checks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/logg.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index c1562b8150..fb942ab149 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -27,10 +27,6 @@ #pragma hdrstop #endif -#if !wxUSE_GUI - #error "This file can't be compiled without GUI!" -#endif - #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/button.h" @@ -1150,7 +1146,7 @@ static int OpenLogFile(wxFile& file, wxString *pFilename) #endif // !(wxUSE_LOGGUI || wxUSE_LOGWINDOW) -#if wxUSE_LOG && wxUSE_GUI && wxUSE_TEXTCTRL +#if wxUSE_LOG && wxUSE_TEXTCTRL // ---------------------------------------------------------------------------- // wxLogTextCtrl implementation @@ -1177,6 +1173,5 @@ void wxLogTextCtrl::DoLogString(const wxChar *szString, time_t WXUNUSED(t)) m_pTextCtrl->AppendText(msg); } -#endif // wxUSE_LOG && wxUSE_GUI && wxUSE_TEXTCTRL +#endif // wxUSE_LOG && wxUSE_TEXTCTRL -// vi:sts=4:sw=4:et -- 2.45.2