aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-03-22 16:08:59 +0100
committerThomas White <taw@physics.org>2018-03-22 16:08:59 +0100
commit5c8489859d9c3d6a071ad5817d669694a811553d (patch)
treee34a78b6ec87fd6351ef13381593630ef3c05a04 /src
parent00e75c577fa1069d24188bb7750fea1bc3723865 (diff)
OpenCL stuff
Diffstat (limited to 'src')
-rw-r--r--src/cl-utils.c4
-rw-r--r--src/diffraction-gpu.c4
-rw-r--r--src/diffraction-gpu.h2
3 files changed, 1 insertions, 9 deletions
diff --git a/src/cl-utils.c b/src/cl-utils.c
index a7e500cd..b3ce0de0 100644
--- a/src/cl-utils.c
+++ b/src/cl-utils.c
@@ -34,11 +34,7 @@
#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 ea50b3fa..8c21586a 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -38,11 +38,7 @@
#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"
diff --git a/src/diffraction-gpu.h b/src/diffraction-gpu.h
index 0b0e364b..bef12a8e 100644
--- a/src/diffraction-gpu.h
+++ b/src/diffraction-gpu.h
@@ -38,7 +38,7 @@
struct gpu_context;
-#if HAVE_OPENCL
+#ifdef HAVE_OPENCL
extern int get_diffraction_gpu(struct gpu_context *gctx, struct image *image,
int na, int nb, int nc, UnitCell *ucell,