From 985b0083c76a51ee706aaf2f834ad781877e47c7 Mon Sep 17 00:00:00 2001
From: Yichao Yu <yyc1992@gmail.com>
Date: Sun, 28 Sep 2014 19:59:53 -0400
Subject: [PATCH] try fix compilation for opencl < 1.2

---
 src/c_wrapper/wrap_cl.h | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/c_wrapper/wrap_cl.h b/src/c_wrapper/wrap_cl.h
index 3bbcdec5..cd2c2b9b 100644
--- a/src/c_wrapper/wrap_cl.h
+++ b/src/c_wrapper/wrap_cl.h
@@ -59,12 +59,15 @@
 
 #endif
 
-#ifndef cl_ext_migrate_memobject
-typedef cl_bitfield cl_mem_migration_flags_ext;
-#endif
-
 #if PYOPENCL_CL_VERSION < 0x1020
 typedef intptr_t cl_device_partition_property;
+typedef cl_uint cl_kernel_arg_info;
+typedef struct _cl_image_desc cl_image_desc;
+typedef cl_bitfield cl_mem_migration_flags;
+#endif
+
+#ifndef cl_ext_migrate_memobject
+typedef cl_bitfield cl_mem_migration_flags_ext;
 #endif
 
 #ifndef cl_ext_device_fission
-- 
GitLab