From d3e730abbff7f8e851ab5934372fb20c7846e61b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 21 Mar 2017 01:58:45 +0100 Subject: fix OSX/PPC compilation --- libs/gtkmm2ext/nsglview.mm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'libs/gtkmm2ext') diff --git a/libs/gtkmm2ext/nsglview.mm b/libs/gtkmm2ext/nsglview.mm index 9f6ae629a1..90f86b7d13 100644 --- a/libs/gtkmm2ext/nsglview.mm +++ b/libs/gtkmm2ext/nsglview.mm @@ -19,6 +19,20 @@ */ +/* the API is currently only used on intel mac + * for big-endian RGBA <> RGBA byte order of the texture + * will have to be swapped. + * + * Also it does not currently compile as-is: + * + * warning: Mac OS X version 10.5 or later is needed for use of property + * error: synthesized property 'tag' must either be named the same as a compatible ivar or must explicitly name an ivar + * + * the wscipt would have to relax MAC_OS_X_VERSION_MIN_REQUIRED=1040 + * (ardour's PPC build-stack is 10.5) + */ +#ifndef __ppc__ + /* include order matter due to apple defines */ #include @@ -294,3 +308,5 @@ Gtkmm2ext::nsglview_set_visible (void* glv, bool vis) [gl_view setHidden:YES]; } } + +#endif -- cgit v1.2.3