X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d45127a543b01fe66a5d94033f6730e057a78a9a..f416695a1bf8ac887e2b6223f8ad72954dc2dc03:/include/wx/msgout.h

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