From 42807fa75746d991d0d4cae907c86cf52f973044 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Sun, 1 Jan 2023 16:50:24 -0800 Subject: Working Windows builds under MinGW --- src/draw.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/draw.c') 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 #include #include @@ -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()) -- cgit