Better fix for bug 2085 - SDL 1.2.15 fails to build on OSX 10.9 Mavericks, thanks Ozkan! SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Fri, 06 Sep 2013 23:35:30 -0700
branchSDL-1.2
changeset 7734bbfb41c13a87
parent 7726 e9466ead70e5
child 7991 cfec3f86fba7
Better fix for bug 2085 - SDL 1.2.15 fails to build on OSX 10.9 Mavericks, thanks Ozkan!
src/video/quartz/SDL_QuartzVideo.h
     1.1 --- a/src/video/quartz/SDL_QuartzVideo.h	Thu Sep 05 06:38:57 2013 -0700
     1.2 +++ b/src/video/quartz/SDL_QuartzVideo.h	Fri Sep 06 23:35:30 2013 -0700
     1.3 @@ -91,6 +91,9 @@
     1.4      CGDirectDisplayID  display;            /* 0 == main display (only support single display) */
     1.5      const void         *mode;              /* current mode of the display */
     1.6      const void         *save_mode;         /* original mode of the display */
     1.7 +#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070)
     1.8 +    CGDirectPaletteRef palette;            /* palette of an 8-bit display */
     1.9 +#endif
    1.10      NSOpenGLContext    *gl_context;        /* OpenGL rendering context */
    1.11      NSGraphicsContext  *nsgfx_context;     /* Cocoa graphics context */
    1.12      Uint32             width, height, bpp; /* frequently used data about the display */