summaryrefslogtreecommitdiff
path: root/src/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw.c')
-rw-r--r--src/draw.c7
1 files changed, 7 insertions, 0 deletions
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())