diff --git a/common/single_top.cpp b/common/single_top.cpp index 38ed55f899..c9bd80625b 100644 --- a/common/single_top.cpp +++ b/common/single_top.cpp @@ -186,16 +186,20 @@ struct APP_SINGLE_TOP : public wxApp return ret; } +#ifdef __WXMAC__ + /** * Function MacOpenFile * is specific to MacOSX (not used under Linux or Windows). * MacOSX requires it for file association. * @see http://wiki.wxwidgets.org/WxMac-specific_topics */ - void MacOpenFile( const wxString& aFileName ) // overload wxApp virtual + void MacOpenFile( const wxString& aFileName ) override { Pgm().MacOpenFile( aFileName ); } + +#endif }; IMPLEMENT_APP( APP_SINGLE_TOP );