summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-01-06 10:13:03 -0500
committerDavid Robillard <d@drobilla.net>2020-01-06 10:13:03 -0500
commit31b6c21cb71010ab6202d345c9549d5b5dab9540 (patch)
tree97aa8f9d06e6ee69331d13209b128cc47767fa75
parent5d45fda230192d47a4afadecdf3dce038b8d6fe9 (diff)
downloadsuil-31b6c21cb71010ab6202d345c9549d5b5dab9540.tar.gz
suil-31b6c21cb71010ab6202d345c9549d5b5dab9540.tar.bz2
suil-31b6c21cb71010ab6202d345c9549d5b5dab9540.zip
Fix compilation on MacOS older than 10.12
-rw-r--r--NEWS6
-rw-r--r--src/cocoa_in_gtk2.mm4
-rw-r--r--wscript2
3 files changed, 11 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5c8c3b3..28d0708 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+suil (0.10.7) unstable;
+
+ * Fix compilation on MacOS older than 10.12
+
+ -- David Robillard <d@drobilla.net> Mon, 06 Jan 2020 15:12:38 +0000
+
suil (0.10.6) stable;
* Add no-cocoa configure flag
diff --git a/src/cocoa_in_gtk2.mm b/src/cocoa_in_gtk2.mm
index 27ed9ac..d0130da 100644
--- a/src/cocoa_in_gtk2.mm
+++ b/src/cocoa_in_gtk2.mm
@@ -25,6 +25,10 @@
#include "lv2/options/options.h"
#include "lv2/urid/urid.h"
+#ifndef MAC_OS_X_VERSION_10_12
+#define MAC_OS_X_VERSION_10_12 101200
+#endif
+
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
#define NSEventTypeFlagsChanged NSFlagsChanged
#define NSEventTypeLeftMouseDown NSLeftMouseDown
diff --git a/wscript b/wscript
index 23f5221..3bd065f 100644
--- a/wscript
+++ b/wscript
@@ -7,7 +7,7 @@ from waflib import TaskGen
from waflib.extras import autowaf
# Semver package/library version
-SUIL_VERSION = '0.10.6'
+SUIL_VERSION = '0.10.7'
SUIL_MAJOR_VERSION = SUIL_VERSION[0:SUIL_VERSION.find('.')]
# Mandatory waf variables