Recent macOS SDKs badly define MAC_OS_X_VERSION_MAX_ALLOWED

and the correct information is in __MAC_OS_X_VERSION_MAX_ALLOWED
This commit is contained in:
ManoloFLTK 2024-11-03 14:27:28 +01:00
parent b8bf13ec65
commit 6f6a375fca
2 changed files with 4 additions and 4 deletions

View File

@ -47,6 +47,10 @@ typedef class FLWindow *Window; // pointer to the FLWindow objective-c class
// Standard MacOS C/C++ includes...
#include <ApplicationServices/ApplicationServices.h>
#undef check // because of Fl::check()
#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
#ifndef MAC_OS_X_VERSION_10_4
#define MAC_OS_X_VERSION_10_4 1040

View File

@ -49,10 +49,6 @@ extern "C" {
#include <pwd.h>
#import <Cocoa/Cocoa.h>
#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 <ScreenCaptureKit/ScreenCaptureKit.h>
#endif