]> git.leonardobizzoni.com Git - CBuild/commitdiff
forgot to pass `path` to the mkdir macro
authorLeonardoBizzoni <leo2002714@gmail.com>
Thu, 21 Aug 2025 14:54:57 +0000 (16:54 +0200)
committerLeonardoBizzoni <leo2002714@gmail.com>
Thu, 21 Aug 2025 14:54:57 +0000 (16:54 +0200)
cbuild.h

index 73a9f53e866ca8134b9148f786007d4e6c5b7a48..0e307b530fc5631b4a144e196e07855ce9415b70 100755 (executable)
--- a/cbuild.h
+++ b/cbuild.h
@@ -79,7 +79,7 @@ typedef enum {false, true} bool;
 #  undef stdout
 #  define win32_stderr stderr
 #  undef stderr
-#  define _cb_platform_mkdir _mkdir(path);
+#  define _cb_platform_mkdir(Path) _mkdir((Path));
 #  define MAX_ENVVAR 32767
 #  define CB_PROC_INVALID INVALID_HANDLE_VALUE
 #  define CB_HANDLE_INVALID INVALID_HANDLE_VALUE
@@ -92,7 +92,7 @@ typedef enum {false, true} bool;
 #  include <sys/stat.h>
 #  include <sys/wait.h>
 #  include <sys/stat.h>
-#  define _cb_platform_mkdir mkdir(path, S_IRWXU | (S_IRGRP | S_IXGRP) | (S_IROTH | S_IXOTH));
+#  define _cb_platform_mkdir(Path) mkdir((Path), S_IRWXU | (S_IRGRP | S_IXGRP) | (S_IROTH | S_IXOTH));
 #  define CB_PROC_INVALID -1
 #  define CB_HANDLE_INVALID -1
    typedef int32_t CB_Handle;