aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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,