[gegl] Fix weak_import warnings on OSX



commit 80441b72371fdde985aefa4215d7202aff0f5e80
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Fri Jun 7 13:07:13 2013 -0700

    Fix weak_import warnings on OSX
    
    Remove CL_EXT_SUFFIX__VERSION_1_1 from the typedefs, which
    appears to be an error in the header. The GCC error isn't
    descriptive, but Clang specifically says the attribute
    can't be applied to a typedef.

 gegl/opencl/cl_ext.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/opencl/cl_ext.h b/gegl/opencl/cl_ext.h
index c0bdffa..03ee0c0 100644
--- a/gegl/opencl/cl_ext.h
+++ b/gegl/opencl/cl_ext.h
@@ -147,13 +147,13 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(
     clReleaseDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
 
     typedef CL_API_ENTRY cl_int
-    (CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
+    (CL_API_CALL *clReleaseDeviceEXT_fn)( cl_device_id /*device*/ );
 
     extern CL_API_ENTRY cl_int CL_API_CALL
     clRetainDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
 
     typedef CL_API_ENTRY cl_int
-    (CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;
+    (CL_API_CALL *clRetainDeviceEXT_fn)( cl_device_id /*device*/ );
 
     typedef cl_ulong  cl_device_partition_property_ext;
     extern CL_API_ENTRY cl_int CL_API_CALL
@@ -168,7 +168,7 @@ typedef CL_API_ENTRY cl_int (CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(
                                                 const cl_device_partition_property_ext * /* properties */,
                                                 cl_uint /*num_entries*/,
                                                 cl_device_id * /*out_devices*/,
-                                                cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;
+                                                cl_uint * /*num_devices*/ );
 
     /* cl_device_partition_property_ext */
     #define CL_DEVICE_PARTITION_EQUALLY_EXT             0x4050


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]