diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-10-22 19:48:31 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-10-22 19:48:31 +0200 |
| commit | b6b1fcce4103f6a401571e9050f4482d38d3a6c9 (patch) | |
| tree | b1ca4a43d575cde35aa8c777ea4677f61d2d6512 /src | |
| parent | 77b3557f3a0e7ab8a21ea012b05c705e86595670 (diff) | |
Test wether preprocessor variable __BLOCKS__ is defined
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Native_File_Chooser_MAC.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm index f960ad1d7..9c4b8b8e3 100644 --- a/src/Fl_Native_File_Chooser_MAC.mm +++ b/src/Fl_Native_File_Chooser_MAC.mm @@ -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; |
