Make Mac-specific function conditional

If we want to have an override marker on this function, it needs to be
conditional on Mac.
This commit is contained in:
Simon Richter 2017-02-23 21:00:09 +01:00 committed by Wayne Stambaugh
parent 62235348d1
commit ef0a5ff71c
1 changed files with 5 additions and 1 deletions

View File

@ -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 );