From: Nigel Stewart Date: Thu, 18 Jul 2013 00:40:25 +0000 (-0500) Subject: glimports: Check for iOS and skip OpenGL and CGL as appropriate. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=3892c3075d6ec80d69570dceddcdd1f67abfc04a glimports: Check for iOS and skip OpenGL and CGL as appropriate. The Regal build for iOS supporting apitrace needs this change to avoid a compilation error. --- diff --git a/dispatch/glimports.hpp b/dispatch/glimports.hpp index 358135f..9a71a44 100644 --- a/dispatch/glimports.hpp +++ b/dispatch/glimports.hpp @@ -88,6 +88,10 @@ typedef struct _WGLSWAP #elif defined(__APPLE__) +#include + +#if TARGET_OS_IPHONE +#elif TARGET_OS_MAC #include #include @@ -124,6 +128,7 @@ CGLError CGLGetSurface(CGLContextObj ctx, CGSConnectionID* cid, CGSWindowID* wid CGLError CGLUpdateContext(CGLContextObj ctx); } +#endif #else