summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-07-06 09:22:06 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-07-06 09:22:06 +0200
commit3c41e2d372d35c6a9681b50750486543ea01577b (patch)
treeef7205e016b43431263494506e20c6fc752da47c /src
parent71faa15432908e478398e7135d7b04225d1e9216 (diff)
Correct guard for adequate version of macOS SDK
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index f745f12a7..07949ac57 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -3453,7 +3453,7 @@ Fl_Quartz_Copy_Surface_Driver::~Fl_Quartz_Copy_Surface_Driver()
{
CGContextRestoreGState(gc);
CGContextEndPage(gc);
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
if (fl_mac_os_version >= 100500) CGPDFContextClose(gc); // needs 10.5, necessary with macOS 10.15
#endif
CGContextRelease(gc);