diff options
author | fanquake <fanquake@gmail.com> | 2022-06-28 16:54:01 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-07-20 10:34:46 +0100 |
commit | 203e682d22a89af23dab21418e841e3b54b136d4 (patch) | |
tree | 0cb7a4a5126e94d90ae10058cdf064c4136b08ff /src | |
parent | b63ddb7e6d5c0463b4b8888ae015df87a381c0f6 (diff) |
compat: extract and document MAX_PATH
Diffstat (limited to 'src')
-rw-r--r-- | src/compat/compat.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 5c9639be26..21ec3b59b9 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -65,9 +65,14 @@ typedef unsigned int SOCKET; #define S_IRUSR 0400 #define S_IWUSR 0200 #endif -#else +#endif + +// Windows defines MAX_PATH as it's maximum path length. +// We define MAX_PATH for use on non-Windows systems. +#ifndef WIN32 #define MAX_PATH 1024 #endif + #ifdef _MSC_VER #if !defined(ssize_t) #ifdef _WIN64 |