Skip to content

OpenCL macOS xcode27.0 b1

Alex Soto edited this page Jun 9, 2026 · 2 revisions

#OpenCL.framework

diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h	2026-04-18 22:20:38
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenCL.framework/Headers/cl_gl_ext.h	2026-05-21 08:22:22
@@ -109,7 +109,9 @@
                            cl_int *   __nullable /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1 CL_DEPRECATED(10.7, 10.14);
 
 #ifdef AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
-#if __has_feature(objc_class_property)
+#if defined(__swift__) && __has_include(<IOSurface/IOSurfaceRef.h>)
+#include <IOSurface/IOSurfaceRef.h>
+#elif __has_feature(objc_class_property)
 typedef struct  __attribute__((objc_bridge(id))) __IOSurface *IOSurfaceRef __attribute__((swift_name("IOSurfaceRef")));
 #else
 typedef struct  __attribute__((objc_bridge(id))) __IOSurface *IOSurfaceRef;

Clone this wiki locally