diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-05 01:21:53 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-05 01:21:53 +0200 |
commit | b402e12d545e9729578e03ad041a131d8a72f37c (patch) | |
tree | c2e9124aa0818518051800fc7e30b862e97d88e6 /gtk2_ardour | |
parent | 6a8b177f06ee1213cefc7408a67b0ed1e315460d (diff) |
fix ppc builds
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/au_pluginui.mm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index f2153aec6a..68150b2c32 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -37,7 +37,10 @@ #import <AudioUnit/AUCocoaUIView.h> #import <CoreAudioKit/AUGenericView.h> #import <objc/runtime.h> + +#ifndef __ppc__ #include <dispatch/dispatch.h> +#endif #undef Marker @@ -210,7 +213,7 @@ static uint32_t block_plugin_redraws = 0; static const uint32_t minimum_redraw_rate = 30; /* frames per second */ static const uint32_t block_plugin_redraw_count = 15; /* number of combined plugin redraws to block, if blocking */ -#ifdef __ppc +#ifdef __ppc__ /* PowerPC versions of OS X do not support libdispatch, which we use below when swizzling objective C. But they also don't have Retina * which is the underlying reason for this code. So just skip it on those CPUs. @@ -277,7 +280,7 @@ static void interposed_drawIfNeeded (id receiver, SEL selector, NSRect rect) @end -#endif /* __ppc */ +#endif /* __ppc__ */ /* END OF THE PLUGIN REDRAW HACK */ |