diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-08 22:16:31 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-08 22:16:31 +0100 |
| commit | 15dd612705a2054cacfb794f5d1662f38316bbdd (patch) | |
| tree | 62a146ac5b8e9c83b71aba43cd629bc55b35328d /src/config.h | |
| parent | dc5396903791c1b2a1808e724d9b6cf07d7604a7 (diff) | |
max path length for windows
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h index 8e610f5..5255c1a 100644 --- a/src/config.h +++ b/src/config.h @@ -1,6 +1,11 @@ #pragma once +#if defined(_WIN32) +#define MAX_INPUT_LENGTH 32767 +#elif defined(__linux__) #define MAX_INPUT_LENGTH 4096 +#endif + #define MAX_ERROR_MESSAGE_LENGTH (MAX_INPUT_LENGTH) #define FILE_RESERVE_COUNT 1000 #define ERROR_RESERVE_COUNT 100 |
