From: Nigel Stewart Date: Fri, 5 Jul 2013 16:49:11 +0000 (-0500) Subject: Support for Mac OS X 10.5 Leopard X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=596aadf1acfd316a568cc3eb7af9a646a5876db8;p=apitrace Support for Mac OS X 10.5 Leopard CGLShareGroupObj and IOSurfaceRef were added in 10.6 Snow Leopard SDK Add workarounds to glimports.hpp to support building for pre-10.6. --- diff --git a/dispatch/glimports.hpp b/dispatch/glimports.hpp index e6d1d32..358135f 100644 --- a/dispatch/glimports.hpp +++ b/dispatch/glimports.hpp @@ -89,8 +89,22 @@ typedef struct _WGLSWAP #elif defined(__APPLE__) #include + +#include + +#ifndef MAC_OS_X_VERSION_10_6 +#define MAC_OS_X_VERSION_10_6 1060 +#endif + +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 #include #include +#else +#define kCGLPFAAcceleratedCompute 97 +#define kCGLRPAcceleratedCompute 130 +typedef void *CGLShareGroupObj; +typedef struct __IOSurface *IOSurfaceRef; +#endif #ifndef CGL_VERSION_1_3 #define kCGLPFAOpenGLProfile 99