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:
parent
3604a7a7f7
commit
3353364cf8
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue