Updater: Fix MSVC build

This commit is contained in:
Vicki Pfau 2023-07-24 19:21:43 -07:00
parent 9742722213
commit 4ca8ffe3f4
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@
#include <synchapi.h> #include <synchapi.h>
#define mkdir(X, Y) _mkdir(X) #define mkdir(X, Y) _mkdir(X)
#ifndef S_ISDIR
#define S_ISDIR(MODE) (((MODE) & _S_IFMT) == _S_IFDIR)
#endif
#elif defined(_POSIX_C_SOURCE) #elif defined(_POSIX_C_SOURCE)
#include <unistd.h> #include <unistd.h>
#endif #endif