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