From 2a0f78d617c914242ca63069a40db3f28ae46ef0 Mon Sep 17 00:00:00 2001 From: Andrej Karpathy Date: Sat, 25 May 2024 00:44:16 +0000 Subject: [PATCH] attempt to fix windows episode 2 --- dev/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/unistd.h b/dev/unistd.h index af0c0ae48..5569d7df3 100644 --- a/dev/unistd.h +++ b/dev/unistd.h @@ -25,7 +25,7 @@ static inline int clock_gettime(int ignore_variable, struct timespec* tv) #define TURN_ON_FP_FAST __pragma(float_control(pop)) // Restore file's default settings #include /* for _mkdir and _stat */ -#define mkdir _mkdir // add mkdir into namespace for windows +#define mkdir(path, mode) _mkdir(path) /* sketchy way to get mkdir to work on windows */ #define stat _stat typedef struct glob_t {