opengl 3.2 core profile not compatible with cl_gl.h

The OpenGL 3.2 core profile is not compatible with cl_gl.h

as a workaround to use OpenCL functionality with OpenGL 3.2 core mode, you have to define _gl_h before including CL/cl_gl.h
otherwise cl_gl.h tries to include the old gl header file which results in type conflicts:

i think a fix is needed within the cl_gl.h file.

as a workaround, you can use

#if GL3_PROTOTYPES
#define _gl_h
#endif
#include <CL/cl_gl.h>