summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-10-09 14:17:15 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-10-09 14:17:15 +0200
commit93a4ba831a01fc1e7d9980a6a06e1ed314ce09ea (patch)
tree1a048b83b4d278d1980fde76d570928fcc486fdf /modules
parentd0367f8af8d3e336d681c1254301273222ff3c94 (diff)
opengl: fix deprecated warnings on OSX 10.12
Diffstat (limited to 'modules')
-rw-r--r--modules/opengl/opengl.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/opengl/opengl.m b/modules/opengl/opengl.m
index ec4c2b4..21c8aaf 100644
--- a/modules/opengl/opengl.m
+++ b/modules/opengl/opengl.m
@@ -18,6 +18,13 @@
*/
+#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 101200)
+#define NSTitledWindowMask NSWindowStyleMaskTitled
+#define NSClosableWindowMask NSWindowStyleMaskClosable
+#define NSMiniaturizableWindowMask NSWindowStyleMaskMiniaturizable
+#endif
+
+
struct vidisp_st {
const struct vidisp *vd; /**< Inheritance (1st) */
struct vidsz size; /**< Current size */