1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-06 19:50:22 +00:00

Make PATHNAME_LENGTH_MAX > 4k or FILENAME_MAX

This commit is contained in:
a740g 2023-12-11 19:04:18 +05:30
parent 3604a7a7f7
commit 3353364cf8

View file

@ -23,7 +23,11 @@
# define PATH_SEPARATOR '/' # define PATH_SEPARATOR '/'
#endif #endif
#define PATHNAME_LENGTH_MAX (FILENAME_MAX << 4) #if (FILENAME_MAX > 4096)
# define PATHNAME_LENGTH_MAX FILENAME_MAX
#else
# define PATHNAME_LENGTH_MAX 4096
#endif
/// @brief Gets the current working directory /// @brief Gets the current working directory
/// @return A qbs containing the current working directory or an empty string on error /// @return A qbs containing the current working directory or an empty string on error