mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Fix #1648 - set MG_PATH_MAX to FILENAME_MAX on windows and unix
This commit is contained in:
1 parent
cde441bca6
commit
e8289ec17d
3 files changed
+16
-4
No files matched your search
+4
-2
@@ -62,9 +62,11 @@ typedef enum { false = 0, true = 1 } bool;
|
||||
|
||||
typedef int socklen_t;
|
||||
#define MG_DIRSEP '\\'
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX MAX_PATH
|
||||
|
||||
#ifndef MG_PATH_MAX
|
||||
#define MG_PATH_MAX FILENAME_MAX
|
||||
#endif
|
||||
|
||||
#ifndef EINPROGRESS
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user