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) {