aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac.m
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/mac.m
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/mac.m')
-rw-r--r--pugl/detail/mac.m8
1 files changed, 8 insertions, 0 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)
{