mac-capture: Use system CGDisplayStream.h header on macOS 14 and newer

ee3c2d0 introduced a local copy of the CGDisplayStream.h header as the
macOS 13.3 SDK erroneously declared functions as unavailable on older
systems. This has been fixed in the macOS 14 SDK with the functions
correctly being declared as available on 10.8, so we can use the system
header again, and in the future remove the local copy once our minimum
compile version is new enough.
This commit is contained in:
gxalpha 2023-06-06 13:01:58 +02:00 committed by Ryan Foster
parent eab9cb0e49
commit abd472cd31

View file

@ -4,7 +4,13 @@
#include <pthread.h>
#import <AvailabilityMacros.h>
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 140000
#import <CoreGraphics/CGDisplayStream.h>
#else
#import "CGDisplayStream.h"
#endif
#import <Cocoa/Cocoa.h>
#include "window-utils.h"