summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-08 19:34:29 +0100
committerRay <[email protected]>2023-11-08 19:34:29 +0100
commite7114a5c2a55abfd305646bc679dce18497b0c39 (patch)
tree788beec2e5a01ebb0e68ae0f4608ab8b7aff7822
parent9d8a11f21a0582ef6237be63fceb33dba6eca8ed (diff)
downloadraylib-e7114a5c2a55abfd305646bc679dce18497b0c39.tar.gz
raylib-e7114a5c2a55abfd305646bc679dce18497b0c39.zip
Update rcore.c
-rw-r--r--src/rcore.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 67538b7c..aa254010 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -189,7 +189,11 @@ __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigne
#define MAX_FILEPATH_CAPACITY 8192 // Maximum capacity for filepath
#endif
#ifndef MAX_FILEPATH_LENGTH
- #define MAX_FILEPATH_LENGTH 4096 // Maximum length for filepaths (Linux PATH_MAX default value)
+ #if defined(_WIN32)
+ #define MAX_FILEPATH_LENGTH 256 // On Win32, MAX_PATH = 260 (limits.h) but Windows 10, Version 1607 enables long paths...
+ #else
+ #define MAX_FILEPATH_LENGTH 4096 // On Linux, PATH_MAX = 4096 by default (limits.h)
+ #endif
#endif
#ifndef MAX_KEYBOARD_KEYS