diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp
index d1948cc8c6307fad77903d790624d4cd3625536a..145c0b9c264e024c93298cccf34a39fa281f331d 100644
--- a/src/wrap_cl.hpp
+++ b/src/wrap_cl.hpp
@@ -1585,7 +1585,7 @@ namespace pyopencl
         {}
       };
 
-      static void evt_callback(cl_event evt, cl_int command_exec_status, void *user_data)
+      static void CL_CALLBACK evt_callback(cl_event evt, cl_int command_exec_status, void *user_data)
       {
         event_callback_info_t *cb_info = reinterpret_cast<event_callback_info_t *>(user_data);
         {