소스 검색

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)
Joshua Root 2 년 전
부모
커밋
72823dd0cd
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/video/cocoa/SDL_cocoaopengl.h

+ 1 - 0
src/video/cocoa/SDL_cocoaopengl.h

@@ -27,6 +27,7 @@
 
 #include "SDL_atomic.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. */
 #ifdef __clang__