summaryrefslogtreecommitdiff
path: root/src/boring_parts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/boring_parts.h')
-rw-r--r--src/boring_parts.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/boring_parts.h b/src/boring_parts.h
index fc4e09b..431a46f 100644
--- a/src/boring_parts.h
+++ b/src/boring_parts.h
@@ -1,8 +1,16 @@
#include <iostream>
+
+#ifdef HAS_OPENCL
#include <CL/opencl.h>
-#include "gtk_includes.h"
+int initOpenCL();
+#else
+// Quick and dirty cl_float4 replacement
+typedef union {
+ float s[4];
+ struct{ float x, y, z, w; };
+ struct{ float s0, s1, s2, s3; };
+} cl_float4;
+#endif /*HAS_OPENCL*/
int initLibs();
-int initOpenCL();
-int initGTK();