From b64a84736d45bd571b7f66a5f32269d577eba17e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 Oct 2001 13:44:16 +0000 Subject: [PATCH] fix for linking problem under !MSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/statusbr.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 8880c2ebac..63f52319db 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -31,10 +31,12 @@ #include "wx/statusbr.h" -// with wxUSE_NATIVE_STATUSBAR it is not included from wx/statusbr.h -#include "wx/generic/statusbr.h" +// if !wxUSE_NATIVE_STATUSBAR, this is already done in common/statbar.cpp +#if defined(wxUSE_NATIVE_STATUSBAR) && wxUSE_NATIVE_STATUSBAR + #include "wx/generic/statusbr.h" -IMPLEMENT_DYNAMIC_CLASS(wxStatusBarGeneric, wxWindow) + IMPLEMENT_DYNAMIC_CLASS(wxStatusBarGeneric, wxWindow) +#endif // wxUSE_NATIVE_STATUSBAR BEGIN_EVENT_TABLE(wxStatusBarGeneric, wxWindow) EVT_PAINT(wxStatusBarGeneric::OnPaint) -- 2.49.0