← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Make Mac-specific function conditional

 

Patch committed.  Thanks.

On 2/23/2017 3:00 PM, Simon Richter wrote:
> If we want to have an override marker on this function, it needs to be
> conditional on Mac.
> ---
>  common/single_top.cpp | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/common/single_top.cpp b/common/single_top.cpp
> index 38ed55f89..c9bd80625 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 );
> 


References