SDL_cocoaopengl.h: ensure CVDisplayLinkRef is defined

The typedef seems to be pulled in coincidentally with newer SDKs, but
older ones need to import the header explicitly.

(cherry picked from commit d2910904fb4062c313636c7595e971f1bf248075)
This commit is contained in:
Joshua Root 2022-11-24 06:32:49 +11:00 committed by Sam Lantinga
parent 479e972e56
commit 72823dd0cd
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include "SDL_atomic.h" #include "SDL_atomic.h"
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#import <QuartzCore/CVDisplayLink.h>
/* We still support OpenGL as long as Apple offers it, deprecated or not, so disable deprecation warnings about it. */ /* We still support OpenGL as long as Apple offers it, deprecated or not, so disable deprecation warnings about it. */
#ifdef __clang__ #ifdef __clang__