aboutsummaryrefslogtreecommitdiff
path: root/field.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2020-02-14 03:07:33 -0500
committerJeffrey Armstrong <jeff@approximatrix.com>2020-02-14 03:07:33 -0500
commit1ece8dde054d3c7a54a661c5e75aa3ef2f8ec281 (patch)
tree3de78fe5c6cf2c519fcd66fb4e4328e60a10adcd /field.c
parent083882b9fe415e5d33b4562bcf8abb973d0b8353 (diff)
downloadgemworm-1ece8dde054d3c7a54a661c5e75aa3ef2f8ec281.zip
gemworm-1ece8dde054d3c7a54a661c5e75aa3ef2f8ec281.tar.gz
Now compiles with gcc under modern mint.
Diffstat (limited to 'field.c')
-rw-r--r--field.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/field.c b/field.c
index b53dcdf..41c68e2 100644
--- a/field.c
+++ b/field.c
@@ -20,13 +20,28 @@
#include <stdio.h>
+#ifdef __GNUC__
+
+#include <gem.h>
+
+#else
+
#include <portab.h>
#include <aes.h>
#include <vdi.h>
+#endif
+
#include "field.h"
#include "player.h"
+#ifdef __GEMLIB__
+#define RED G_RED
+#define GREEN G_GREEN
+#define WHITE G_WHITE
+#define BLACK G_BLACK
+#endif
+
/* Defines the play field */
char field[CELLW][CELLH];