From d715d419e1a31e94ff6ce4cc21eb985b2bef3369 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 28 May 2002 16:54:50 +0000 Subject: [PATCH 1/1] fix compilation without WXDEBUG (includes patch 561458) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/x11/app.h | 2 ++ src/x11/app.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/include/wx/x11/app.h b/include/wx/x11/app.h index 0a689ed00f..f770198fc6 100644 --- a/include/wx/x11/app.h +++ b/include/wx/x11/app.h @@ -74,7 +74,9 @@ public: // Processes an X event. virtual bool ProcessXEvent(WXEvent* event); +#ifdef __WXDEBUG__ virtual void OnAssert(const wxChar *file, int line, const wxChar *msg); +#endif // __WXDEBUG__ protected: bool m_showOnInit; diff --git a/src/x11/app.cpp b/src/x11/app.cpp index 46eeb9379a..a1eb5192b5 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -1219,6 +1219,8 @@ bool wxApp::Yield(bool onlyIfNeeded) return TRUE; } +#ifdef __WXDEBUG__ + void wxApp::OnAssert(const wxChar *file, int line, const wxChar *msg) { // While the GUI isn't working that well, just print out the @@ -1232,3 +1234,5 @@ void wxApp::OnAssert(const wxChar *file, int line, const wxChar *msg) #endif } +#endif // __WXDEBUG__ + -- 2.47.2