From f9a18fc1076e49db30387a1aaa0efb7a1bb0efc6 Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 5 Jun 2024 11:54:27 +0200 Subject: [PATCH] fixed: implicit function _mkdir --- ci-build.sh | 0 src/io/files.c | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 ci-build.sh diff --git a/ci-build.sh b/ci-build.sh old mode 100644 new mode 100755 diff --git a/src/io/files.c b/src/io/files.c index d2c889b..090a2cb 100644 --- a/src/io/files.c +++ b/src/io/files.c @@ -18,6 +18,8 @@ #include // for _fullpath #include +// for _mkdir +#include #define MAX_PATH_BYTES _MAX_PATH @@ -67,9 +69,7 @@ void delete_files(ModuleFileStack *stack) { // seeking the current line in print_diagnostic() #define SEEK_BUF_BYTES 256 -static inline unsigned long int min(unsigned long int a, unsigned long int b) { - return a > b ? b : a; -} +#define min(a, b) ((a) > (b) ? (b) : (a)) // behaves like fgets except that it has defined behavior when n == 1 static void custom_fgets(char *buffer, size_t n, FILE *stream) {