summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-11-02 18:32:47 -0400
committerSam Anthony <sam@samanthony.xyz>2024-11-02 18:32:47 -0400
commit354e155867dcb6c0d574bb5de47e5903cb67b99d (patch)
tree0874a1428ad6bd59f08e840b10fe9898cd240855
parentceb086b7b54fda6ea724b92f18060536d7bc08d3 (diff)
downloadballs-354e155867dcb6c0d574bb5de47e5903cb67b99d.zip
config.h
-rw-r--r--Makefile2
-rw-r--r--balls.c2
-rw-r--r--config.h2
3 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 49b04ef..c21376d 100644
--- a/Makefile
+++ b/Makefile
@@ -14,4 +14,4 @@ balls: ${OBJ}
clean:
rm -f *.o balls
-${OBJ}: sysfatal.h balls.h
+${OBJ}: sysfatal.h balls.h config.h
diff --git a/balls.c b/balls.c
index 763f07e..79d1681 100644
--- a/balls.c
+++ b/balls.c
@@ -1,4 +1,4 @@
-#define CL_TARGET_OPENCL_VERSION 110
+#include "config.h"
#include <stdlib.h>
#include <stdio.h>
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..295d69c
--- /dev/null
+++ b/config.h
@@ -0,0 +1,2 @@
+/* #define WINDOWS 1 */
+#define CL_TARGET_OPENCL_VERSION 110