|
|
commit 940edc222fbc428450cb7ba34df337910bfff786
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Fri Nov 5 14:30:46 2021 +0100
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Fri Nov 5 14:31:11 2021 +0100
Allow building with non-Apple compiler that may not support blocks.
src/Fl_Native_File_Chooser_MAC.mm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git src/Fl_Native_File_Chooser_MAC.mm src/Fl_Native_File_Chooser_MAC.mm
index 5464604..7c29533 100644
--- src/Fl_Native_File_Chooser_MAC.mm
+++ src/Fl_Native_File_Chooser_MAC.mm
@@ -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;
[ Direct Link to Message ] | |
|
| |