From 7091df8c93d1e21a4775e558b3f16ac032615df8 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:56:23 +0200 Subject: Restore building with macOS SDK 10.9 and earlier --- src/Fl_cocoa.mm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 5db3bae33..fec06c066 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2468,6 +2468,9 @@ static FLTextInputContext* fltextinputcontext_instance = nil; Fl::handle(FL_KEYUP,window); fl_unlock_function(); } +#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10 + typedef NSUInteger NSEventModifierFlags; +#endif - (void)flagsChanged:(NSEvent *)theEvent { //NSLog(@"flagsChanged: "); fl_lock_function(); -- cgit v1.2.3