mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 23:37:02 +08:00
Test wether preprocessor variable __BLOCKS__ is defined
This commit is contained in:
@@ -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 && __BLOCKS__
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user