diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index 843de9e4453f49aa6405d3d8d081d4f91fa72a80..0821bbab3b9c5e6fca2726ddefc30bcf770683ef 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -1355,12 +1355,12 @@ namespace pyopencl } else { -#if PYOPENCL_CL_VERSION >= 0x2000 +#if PYOPENCL_CL_VERSION < 0x2000 throw error("CommandQueue", CL_INVALID_VALUE, "queue properties given as an iterable, " "which is only allowed when PyOpenCL was built " "against an OpenCL 2+ header"); - +#else if (hex_plat_version < 0x2000) { std::cerr <<