X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71e030352d74e4e6aed28cfcb0ea6edf3d17af6e..2fe212b0336512aac9eace69fab09ce856b0bf4b:/src/generic/statusbr.cpp?ds=inline 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)