From fae866418727b6ee9e524b754cd70a18e5b80c62 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 Jul 2007 00:02:51 +0000 Subject: [PATCH] compilation fixes for wxUSE_MSGDLG==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/chkconf.h | 10 ---------- include/wx/msgout.h | 4 ++-- src/common/msgout.cpp | 2 +- src/common/wincmn.cpp | 2 +- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index f7969c189f..5f6604c5b2 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -1742,16 +1742,6 @@ # endif #endif /* !wxUSE_IMAGLIST */ -#if !wxUSE_MSGDLG -# ifdef wxABORT_ON_CONFIG_ERROR - /* FIXME: should compile without it, of course, but doesn't */ -# error "wxMessageBox is always needed" -# else -# undef wxUSE_MSGDLG -# define wxUSE_MSGDLG 1 -# endif -#endif - #if wxUSE_RADIOBOX # if !wxUSE_RADIOBTN # ifdef wxABORT_ON_CONFIG_ERROR diff --git a/include/wx/msgout.h b/include/wx/msgout.h index 56b11a6244..b670f2b653 100644 --- a/include/wx/msgout.h +++ b/include/wx/msgout.h @@ -132,7 +132,7 @@ protected: // implementation which shows output in a message box // ---------------------------------------------------------------------------- -#if wxUSE_GUI +#if wxUSE_GUI && wxUSE_MSGDLG class WXDLLIMPEXP_CORE wxMessageOutputMessageBox : public wxMessageOutput { @@ -143,7 +143,7 @@ protected: virtual void Output(const wxString& str); }; -#endif // wxUSE_GUI +#endif // wxUSE_GUI && wxUSE_MSGDLG // ---------------------------------------------------------------------------- // implementation using the native way of outputting debug messages diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index 618ace720e..ec85ee9c13 100644 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -209,7 +209,7 @@ void wxMessageOutputLog::Output(const wxString& str) // wxMessageOutputMessageBox // ---------------------------------------------------------------------------- -#if wxUSE_GUI +#if wxUSE_GUI && wxUSE_MSGDLG void wxMessageOutputMessageBox::Output(const wxString& str) { diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 13ccfb0e47..a48533d968 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2348,9 +2348,9 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event ) wxMessageBox(msg, _T("wxWidgets information"), wxICON_INFORMATION | wxOK, (wxWindow *)this); +#endif // wxUSE_MSGDLG } else -#endif // wxUSE_MSGDLG { event.Skip(); } -- 2.47.2