X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b64a84736d45bd571b7f66a5f32269d577eba17e..f0adbe0ffd7c1f1d3fd21926092d6fafd4fc47dc:/src/generic/statusbr.cpp diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index 63f52319db..16e9246509 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -31,8 +31,12 @@ #include "wx/statusbr.h" -// if !wxUSE_NATIVE_STATUSBAR, this is already done in common/statbar.cpp -#if defined(wxUSE_NATIVE_STATUSBAR) && wxUSE_NATIVE_STATUSBAR +// we only have to do it here when we use wxStatusBarGeneric in addition to the +// standard wxStatusBar class, if wxStatusBarGeneric is the same as +// wxStatusBar, then the corresponding IMPLEMENT_DYNAMIC_CLASS is already in +// common/statbar.cpp +#if defined(__WXMAC__) || \ + (defined(wxUSE_NATIVE_STATUSBAR) && wxUSE_NATIVE_STATUSBAR) #include "wx/generic/statusbr.h" IMPLEMENT_DYNAMIC_CLASS(wxStatusBarGeneric, wxWindow)