Compile SDL on older versions of Xcode
authorSam Lantinga <slouken@libsdl.org>
Sun, 03 Mar 2013 08:32:08 -0800
changeset 6952d2e309e7f77c
parent 6951 7833f01322b3
child 6953 b83579d7d19a
Compile SDL on older versions of Xcode
src/video/cocoa/SDL_cocoaopengl.m
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Sun Mar 03 01:01:33 2013 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Sun Mar 03 08:32:08 2013 -0800
     1.3 @@ -35,9 +35,13 @@
     1.4  #define DEFAULT_OPENGL  "/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib"
     1.5  
     1.6  
     1.7 -#if MAC_OS_X_VERSION_MAX_ALLOWED < 1070
     1.8 +#ifndef kCGLPFAOpenGLProfile
     1.9  #define kCGLPFAOpenGLProfile 99
    1.10 +#endif
    1.11 +#ifndef kCGLOGLPVersion_Legacy
    1.12  #define kCGLOGLPVersion_Legacy 0x1000
    1.13 +#endif
    1.14 +#ifndef kCGLOGLPVersion_3_2_Core
    1.15  #define kCGLOGLPVersion_3_2_Core 0x3200
    1.16  #endif
    1.17