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:
parent
b8bf13ec65
commit
6f6a375fca
4
FL/mac.H
4
FL/mac.H
@ -47,6 +47,10 @@ typedef class FLWindow *Window; // pointer to the FLWindow objective-c class
|
|||||||
// Standard MacOS C/C++ includes...
|
// Standard MacOS C/C++ includes...
|
||||||
#include <ApplicationServices/ApplicationServices.h>
|
#include <ApplicationServices/ApplicationServices.h>
|
||||||
#undef check // because of Fl::check()
|
#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
|
#ifndef MAC_OS_X_VERSION_10_4
|
||||||
#define MAC_OS_X_VERSION_10_4 1040
|
#define MAC_OS_X_VERSION_10_4 1040
|
||||||
|
@ -49,10 +49,6 @@ extern "C" {
|
|||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.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
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_15_0
|
||||||
# import <ScreenCaptureKit/ScreenCaptureKit.h>
|
# import <ScreenCaptureKit/ScreenCaptureKit.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user