commit | e3d335551ff36cba577f92407e7e816f5c6e1865 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu Dec 09 23:34:59 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 16 12:12:03 2021 +0100 |
tree | 0a6a567417b3f5502ebc077a62c6f46cc86d7d69 | |
parent | 4bcc96ff97a3d6ffd2d233410f1229aeb257e80c [diff] |
compat: MSVC: handle `PATH_MAX` and `_POSIX_PATH_MAX`
diff --git a/compat/posix-shims/unistd.h b/compat/posix-shims/unistd.h index ab717a7..17e4024 100644 --- a/compat/posix-shims/unistd.h +++ b/compat/posix-shims/unistd.h
@@ -52,4 +52,12 @@ typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; +#include <windows.h> +#ifndef PATH_MAX +#define PATH_MAX MAX_PATH +#endif +#ifndef _POSIX_PATH_MAX +#define _POSIX_PATH_MAX 256 +#endif + #endif /* unistd.h */