From b8bf13ec65f68c4c64b3aec50fe643cacabf1b30 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 3 Nov 2024 13:06:24 +0100 Subject: [PATCH] Recent Xcode versions badly define MAC_OS_X_VERSION_MAX_ALLOWED and the correct information is in __MAC_OS_X_VERSION_MAX_ALLOWED --- src/Fl_cocoa.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index aadb98961..c32c0fa3e 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -49,6 +49,10 @@ extern "C" { #include #import +#ifdef __MAC_OS_X_VERSION_MAX_ALLOWED +# undef MAC_OS_X_VERSION_MAX_ALLOWED +# define MAC_OS_X_VERSION_MAX_ALLOWED __MAC_OS_X_VERSION_MAX_ALLOWED +#endif #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_15_0 # import #endif