summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-10-22 18:33:56 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-10-22 18:33:56 +0200
commit77b3557f3a0e7ab8a21ea012b05c705e86595670 (patch)
tree994c4bfe7853b7fee2d9c9f3f676e95a09910cac
parent1afbbb4aef47267e42308da924a71dff0ee8d79c (diff)
Allow compiling with compiler without "blocks" support.
This corresponds to PR#284.
-rw-r--r--src/Fl_Native_File_Chooser_MAC.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm
index eb09f1c40..f960ad1d7 100644
--- a/src/Fl_Native_File_Chooser_MAC.mm
+++ b/src/Fl_Native_File_Chooser_MAC.mm
@@ -602,7 +602,7 @@ int Fl_Quartz_Native_File_Chooser_Driver::runmodal()
fname = [preset lastPathComponent];
}
if (_directory && !dir) dir = [[NSString alloc] initWithUTF8String:_directory];
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 && __BLOCKS__
if (fl_mac_os_version >= 100600) {
bool usepath = false;
NSString *path = nil;