]> git.cworth.org Git - apitrace/commitdiff
glimports: Check for iOS and skip OpenGL and CGL as appropriate.
authorNigel Stewart <nigels@users.sourceforge.net>
Thu, 18 Jul 2013 00:40:25 +0000 (19:40 -0500)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 20 Jul 2013 14:00:57 +0000 (15:00 +0100)
The Regal build for iOS supporting apitrace needs this
change to avoid a compilation error.

dispatch/glimports.hpp

index 358135f2ba86f62b444cedfa6ffb79e1fd0061d5..9a71a448e084d1f9ff963c3634c0bd23a710adcb 100644 (file)
@@ -88,6 +88,10 @@ typedef struct _WGLSWAP
 
 #elif defined(__APPLE__)
 
+#include <TargetConditionals.h>
+
+#if TARGET_OS_IPHONE
+#elif TARGET_OS_MAC
 #include <OpenGL/OpenGL.h>
 
 #include <AvailabilityMacros.h>
@@ -124,6 +128,7 @@ CGLError CGLGetSurface(CGLContextObj ctx, CGSConnectionID* cid, CGSWindowID* wid
 CGLError CGLUpdateContext(CGLContextObj ctx);
 
 }
+#endif
 
 #else