summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/body.c2
-rw-r--r--src/draw.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/body.c b/src/body.c
index ad06411..36a81ce 100644
--- a/src/body.c
+++ b/src/body.c
@@ -1,3 +1,5 @@
+#include "config.h"
+
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
diff --git a/src/draw.c b/src/draw.c
index 55f9013..e49d636 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -1,3 +1,5 @@
+#include "config.h"
+
#include <errno.h>
#include <math.h>
#include <ncurses.h>
@@ -12,6 +14,11 @@
#include "include/body.h"
+#ifdef MKDIR_TAKES_ONE_ARG /* MinGW32 */
+#undef mkdir
+#define mkdir(a, b) mkdir(a)
+#endif
+
#define START_SIZE 4
//TODO consider having speed be affected by window size
#define SPEED 50000 //global refresh rate (for usleep())