aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-25 14:15:55 +0200
committerDavid Robillard <d@drobilla.net>2019-07-25 14:16:24 +0200
commit3359c78b197a1812023e52111699f74d110be37e (patch)
tree91a3ccaa0371d0cc1127a956af50b0b6ec571dde
parent2e3e935319ea740029bbb08d619331dddd72cf66 (diff)
Mac: Fix build on MacOS older than 10.10
-rw-r--r--pugl/pugl_osx.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index af470cb..ba90ea3 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -34,6 +34,12 @@
#include <stdlib.h>
+#ifndef __MAC_10_10
+#define NSOpenGLProfileVersion4_1Core NSOpenGLProfileVersion3_2Core
+typedef NSUInteger NSEventModifierFlags;
+typedef NSUInteger NSWindowStyleMask;
+#endif
+
@class PuglOpenGLView;
struct PuglInternalsImpl {