From a9779ba4154aea7e2ce0781dbdcaee6b78e64268 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Fri, 18 Feb 2011 08:53:55 -0500
Subject: [PATCH] Minor fix to Ian's Apple GL fix.

---
 src/wrapper/wrap_constants.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wrapper/wrap_constants.cpp b/src/wrapper/wrap_constants.cpp
index 94df0cf4..ab2468f7 100644
--- a/src/wrapper/wrap_constants.cpp
+++ b/src/wrapper/wrap_constants.cpp
@@ -263,7 +263,7 @@ void pyopencl_expose_constants()
     ADD_ATTR( ,WGL_HDC_KHR);
     ADD_ATTR( ,CGL_SHAREGROUP_KHR);
 #endif
-#ifdef __APPLE__ && defined(HAVE_GL)
+#if defined(__APPLE__) && defined(HAVE_GL)
     ADD_ATTR( ,CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE);
 #endif /* __APPLE__ */
   }
-- 
GitLab