summaryrefslogtreecommitdiff
path: root/sc/source/core/opencl/openclwrapper.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-09-28 23:20:34 +0200
committerTor Lillqvist <tml@collabora.com>2013-09-28 23:27:32 +0200
commitd0fdae78797979949ec7ead20ad52b901c8c7e9a (patch)
tree761e1d397b7a68b3e294f5b6e33b32c105bebfa4 /sc/source/core/opencl/openclwrapper.hxx
parent9ab2ecd0c6b941b388a69c647c9caed97eb72cca (diff)
Fix OpenCL use on Mac
Don't use glew but just include the <OpenCL/cl.h> which is present in the SDK and link to the OpenCL framework. Change-Id: I3e1c3773078bc5d2550be832a273273d89381dff
Diffstat (limited to 'sc/source/core/opencl/openclwrapper.hxx')
-rw-r--r--sc/source/core/opencl/openclwrapper.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/core/opencl/openclwrapper.hxx b/sc/source/core/opencl/openclwrapper.hxx
index c81c313dd96d..5fd39916211c 100644
--- a/sc/source/core/opencl/openclwrapper.hxx
+++ b/sc/source/core/opencl/openclwrapper.hxx
@@ -21,8 +21,16 @@
#include <rtl/string.hxx>
+#ifdef MACOSX
+
+#include <OpenCL/cl.h>
+
+#else
+
#include "clcc/clew.h"
+#endif
+
// CL_MAP_WRITE_INVALIDATE_REGION is new in OpenCL 1.2.
// When compiling against an older OpenCL, use CL_MAP_WRITE.