mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 20:06:18 +08:00
Allow building with non-Apple compiler that may not support blocks.
This commit is contained in:
@@ -542,7 +542,7 @@ int Fl_Native_File_Chooser::runmodal()
|
|||||||
fname = [preset lastPathComponent];
|
fname = [preset lastPathComponent];
|
||||||
}
|
}
|
||||||
if (_directory && !dir) dir = [[NSString alloc] initWithUTF8String:_directory];
|
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) {
|
if (fl_mac_os_version >= 100600) {
|
||||||
bool usepath = false;
|
bool usepath = false;
|
||||||
NSString *path = nil;
|
NSString *path = nil;
|
||||||
|
|||||||
Reference in New Issue
Block a user