Allow building with non-Apple compiler that may not support blocks.

This commit is contained in:
ManoloFLTK
2021-11-05 14:30:46 +01:00
parent 12db27551c
commit 940edc222f
+1 -1
View File
@@ -542,7 +542,7 @@ int Fl_Native_File_Chooser::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 && defined(__BLOCKS__)
if (fl_mac_os_version >= 100600) {
bool usepath = false;
NSString *path = nil;