diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-06-03 18:27:45 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-06-03 18:27:45 +0200 |
| commit | e2683f36d46188827d3954be3053ade3716709ed (patch) | |
| tree | d27b2916c31a21fe99db2713bd90bf9a6228972b /src/Fl_cocoa.mm | |
| parent | b371c1185c9cf937f48d2ed083d708e80211f38e (diff) | |
macOS: protect uses of __block by #if defined(__BLOCKS__) condition
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 7ad18feb4..f4950e425 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -4730,7 +4730,7 @@ int Fl_Cocoa_Window_Driver::decorated_h() return h() + bt/s; } -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_15_0 +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_15_0 && defined(__BLOCKS__) // Requires -weak_framework ScreenCaptureKit and used by FLTK for macOS ≥ 15.0 static CGImageRef capture_decorated_window_SCK(NSWindow *nswin) { @@ -4815,7 +4815,7 @@ CGImageRef Fl_Cocoa_Window_Driver::capture_decorated_window_10_5(NSWindow *nswin // usable with 10.5 and above CGImageRef img = NULL; #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 -# if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_15_0 +# if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_15_0 && defined(__BLOCKS__) if (fl_mac_os_version >= 150000) img = capture_decorated_window_SCK(nswin); else |
