aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-08-23 21:26:09 +0200
committerDavid Robillard <d@drobilla.net>2019-12-09 20:52:46 +0100
commit91773de7ac4e07643fc47f1f0c1fdb6a255f53d2 (patch)
tree5e0b5c79c5e555b4fcbc8a6f77c08f5b7b952591 /pugl/detail
parent116188e6e0e6e545ead9f0887f465434e464e3b5 (diff)
downloadpugl-91773de7ac4e07643fc47f1f0c1fdb6a255f53d2.tar.gz
pugl-91773de7ac4e07643fc47f1f0c1fdb6a255f53d2.tar.bz2
pugl-91773de7ac4e07643fc47f1f0c1fdb6a255f53d2.zip
Mac: Fix missing NSWindowStyleMask type on 10.11
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/mac.m8
-rw-r--r--pugl/detail/mac_gl.m4
2 files changed, 9 insertions, 3 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m
index efa4d78..ca2cb7c 100644
--- a/pugl/detail/mac.m
+++ b/pugl/detail/mac.m
@@ -32,6 +32,14 @@
#include <stdlib.h>
+#ifndef __MAC_10_10
+typedef NSUInteger NSEventModifierFlags;
+#endif
+
+#ifndef __MAC_10_12
+typedef NSUInteger NSWindowStyleMask;
+#endif
+
static NSRect
rectToScreen(NSRect rect)
{
diff --git a/pugl/detail/mac_gl.m b/pugl/detail/mac_gl.m
index 428cc1a..145b614 100644
--- a/pugl/detail/mac_gl.m
+++ b/pugl/detail/mac_gl.m
@@ -24,9 +24,7 @@
#include "pugl/pugl_stub.h"
#ifndef __MAC_10_10
-#define NSOpenGLProfileVersion4_1Core NSOpenGLProfileVersion3_2Core
-typedef NSUInteger NSEventModifierFlags;
-typedef NSUInteger NSWindowStyleMask;
+# define NSOpenGLProfileVersion4_1Core NSOpenGLProfileVersion3_2Core
#endif
@interface PuglOpenGLView : NSOpenGLView