diff --git a/src/c_wrapper/wrap_cl.h b/src/c_wrapper/wrap_cl.h
index dbd4115b9e2ccb6f0ac1ff59ff7979112a0710f7..8e1a70f06bac8ee798f07a9a4835fd3f3acbbb37 100644
--- a/src/c_wrapper/wrap_cl.h
+++ b/src/c_wrapper/wrap_cl.h
@@ -81,7 +81,11 @@
 #define PYOPENCL_CL_VERSION PYOPENCL_PRETEND_CL_VERSION
 #else
 
-#if defined(CL_VERSION_2_0)
+#if defined(CL_VERSION_2_2)
+#define PYOPENCL_CL_VERSION 0x2020
+#elif defined(CL_VERSION_2_1)
+#define PYOPENCL_CL_VERSION 0x2010
+#elif defined(CL_VERSION_2_0)
 #define PYOPENCL_CL_VERSION 0x2000
 #elif defined(CL_VERSION_1_2)
 #define PYOPENCL_CL_VERSION 0x1020