aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-21 12:06:47 +0200
committerThomas White <taw@physics.org>2018-06-21 12:06:47 +0200
commit3400d1416d8eb07b21595638c6d6e738bd6b1ccc (patch)
tree2d275b76cbfbdb36878ad3e63b790c64fdf9a5a7 /src
parent9564ff6039f73ef5840e1b545189fea50e3ab188 (diff)
Fix OpenCL tests and includes
Diffstat (limited to 'src')
-rw-r--r--src/cl-utils.c4
-rw-r--r--src/diffraction-gpu.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/cl-utils.c b/src/cl-utils.c
index b3ce0de0..a7e500cd 100644
--- a/src/cl-utils.c
+++ b/src/cl-utils.c
@@ -34,7 +34,11 @@
#include <stdio.h>
#include <string.h>
+#ifdef HAVE_CL_CL_H
#include <CL/cl.h>
+#else
+#include <cl.h>
+#endif
#include "utils.h"
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c
index 8c21586a..ea50b3fa 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -38,7 +38,11 @@
#include <string.h>
#include <complex.h>
+#ifdef HAVE_CL_CL_H
#include <CL/cl.h>
+#else
+#include <cl.h>
+#endif
#include "image.h"
#include "utils.h"