diff --git a/src/ShuttleGui.h b/src/ShuttleGui.h index dbca45efd..7555e7dcc 100644 --- a/src/ShuttleGui.h +++ b/src/ShuttleGui.h @@ -87,7 +87,9 @@ public: wxStaticBoxWrapper( Args &&...args ) : wxStaticBox( std::forward(args)... ) { - m_container.EnableSelfFocus(); +#if wxCHECK_VERSION(3, 1, 1) + m_container.EnableSelfFocus(); +#endif } }; diff --git a/src/widgets/FileDialog/mac/FileDialogPrivate.h b/src/widgets/FileDialog/mac/FileDialogPrivate.h index e4a7ee129..1ee046b5b 100644 --- a/src/widgets/FileDialog/mac/FileDialogPrivate.h +++ b/src/widgets/FileDialog/mac/FileDialogPrivate.h @@ -96,8 +96,10 @@ protected: int m_firstFileTypeFilter; wxArrayString m_currentExtensions; WX_NSObject m_delegate; +#if !wxCHECK_VERSION(3, 0, 3) WX_NSObject m_sheetDelegate; #endif +#endif private: // Common part of all ctors.