From 34c18ab860ceb47e67d2e362669e3afea1a6e25d Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Fri, 11 Oct 2013 04:58:49 -0400 Subject: [PATCH] Make it compile with mingw32 again --- ansi.c | 9 +++++++++ ftepp.c | 2 ++ 2 files changed, 11 insertions(+) diff --git a/ansi.c b/ansi.c index 52399df..e69e9e8 100644 --- a/ansi.c +++ b/ansi.c @@ -157,7 +157,16 @@ long platform_ftell(FILE *stream) { } int platform_mkdir(const char *path, int mode) { + /* + * For some reason mingw32 just doesn't have a correct mkdir impl + * so we handle that here. + */ +# ifdef _WIN32 + (void)mode; + return mkdir(path); +# else return mkdir(path, mode); +# endif /*!_WIN32*/ } DIR *platform_opendir(const char *path) { diff --git a/ftepp.c b/ftepp.c index e3cbb0d..2a19130 100644 --- a/ftepp.c +++ b/ftepp.c @@ -23,12 +23,14 @@ */ #include #include +#include #include "gmqcc.h" #include "lexer.h" #include "platform.h" #define HT_MACROS 1024 + typedef struct { bool on; bool was_on; -- 2.39.2