From f1373060b45a43c3d5a9509529cd21bfd48e3279 Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Feb 24 2025 18:11:13 +0000 Subject: fix mingw build --- diff --git a/src/common.c b/src/common.c index 4e289a8..9c04c2a 100644 --- a/src/common.c +++ b/src/common.c @@ -146,7 +146,11 @@ int directoryExists(const char *path) { } int makeDirectory(const char *path) +#ifdef WIN32 + { return directoryExists(path) || !mkdir(path); } +#else { return directoryExists(path) || !mkdir(path, 0777); } +#endif char* heliStringCopy(const char *x) {