Skip to content

Commit

Permalink
attempt to fix windows episode 2
Browse files Browse the repository at this point in the history
  • Loading branch information
karpathy committed May 25, 2024
1 parent 5b96d91 commit 2a0f78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <direct.h> /* 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 {
Expand Down

0 comments on commit 2a0f78d

Please sign in to comment.