Skip to content
Snippets Groups Projects
Commit 870fa050 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix Apple build

parent d9c44969
No related branches found
No related tags found
No related merge requests found
...@@ -48,11 +48,22 @@ if {CL_ENABLE_GL}: ...@@ -48,11 +48,22 @@ if {CL_ENABLE_GL}:
ffi.set_source("pyopencl._cffi", ffi.set_source("pyopencl._cffi",
""" """
#include <CL/cl.h> #ifndef __APPLE__
#include <CL/cl.h>
#ifdef HAVE_GL #ifdef HAVE_GL
#include <GL/gl.h> #include <GL/gl.h>
#include <CL/cl_gl.h> #include <CL/cl_gl.h>
#include <CL/cl_gl_ext.h>
#endif
#else
#include <OpenCL/opencl.h>
#ifdef HAVE_GL
#include <OpenGL/OpenGL.h>
#include <OpenCL/cl_gl.h>
#include <OpenCL/cl_gl_ext.h>
#endif
#endif #endif
extern "C" {{ extern "C" {{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment