mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
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:
parent
eab9cb0e49
commit
abd472cd31
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue