aboutsummaryrefslogtreecommitdiff
path: root/field.h
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.h
parent083882b9fe415e5d33b4562bcf8abb973d0b8353 (diff)
downloadgemworm-1ece8dde054d3c7a54a661c5e75aa3ef2f8ec281.zip
gemworm-1ece8dde054d3c7a54a661c5e75aa3ef2f8ec281.tar.gz
Now compiles with gcc under modern mint.
Diffstat (limited to 'field.h')
-rw-r--r--field.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/field.h b/field.h
index 4004d96..f40029c 100644
--- a/field.h
+++ b/field.h
@@ -24,8 +24,22 @@
#define CELLW 40
#define CELLH 24
+#ifdef __GNUC__
+#include <stdint.h>
+
+#ifndef WORD
+#define WORD uint16_t
+#endif
+
+#include <gem.h>
+
+#else
+
#include <portab.h>
#include <aes.h>
+
+#endif
+
#include "player.h"
/* Initializes the play field */