aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/libsdl/03-mavericks-compile.patch
blob: 1c00140a7ff9e8d45308afcd433c8f018c798931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/video/quartz/SDL_QuartzVideo.h
+++ b/src/video/quartz/SDL_QuartzVideo.h
@@ -91,7 +91,9 @@
     CGDirectDisplayID  display;            /* 0 == main display (only support single display) */
     const void         *mode;              /* current mode of the display */
     const void         *save_mode;         /* original mode of the display */
+#ifdef CGDirectPaletteRef
     CGDirectPaletteRef palette;            /* palette of an 8-bit display */
+#endif
     NSOpenGLContext    *gl_context;        /* OpenGL rendering context */
     NSGraphicsContext  *nsgfx_context;     /* Cocoa graphics context */
     Uint32             width, height, bpp; /* frequently used data about the display */