Fixed Mac OS X build
authorSam Lantinga <slouken@libsdl.org>
Mon, 18 Aug 2014 18:17:03 -0700
changeset 9091ac980036d2fc
parent 9090 29eb1cfa3445
child 9092 8110b8a073f6
Fixed Mac OS X build
include/SDL_opengl_glext.h
     1.1 --- a/include/SDL_opengl_glext.h	Mon Aug 18 18:16:45 2014 -0700
     1.2 +++ b/include/SDL_opengl_glext.h	Mon Aug 18 18:17:03 2014 -0700
     1.3 @@ -465,8 +465,13 @@
     1.4  #ifndef GL_VERSION_1_5
     1.5  #define GL_VERSION_1_5 1
     1.6  #include <stddef.h>
     1.7 +#ifdef __MACOSX__
     1.8 +typedef ssize_t GLsizeiptr;
     1.9 +typedef ssize_t GLintptr;
    1.10 +#else
    1.11  typedef ptrdiff_t GLsizeiptr;
    1.12  typedef ptrdiff_t GLintptr;
    1.13 +#endif
    1.14  #define GL_BUFFER_SIZE                    0x8764
    1.15  #define GL_BUFFER_USAGE                   0x8765
    1.16  #define GL_QUERY_COUNTER_BITS             0x8864