Allow compiling with compiler without "blocks" support.

This corresponds to PR#284.
This commit is contained in:
ManoloFLTK
2021-10-22 18:33:56 +02:00
parent 1afbbb4aef
commit 77b3557f3a
+1 -1
View File
@@ -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;