From b17f4108ea3de3199ea740b10f3e9b42a935c0de Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sat, 30 Oct 2021 19:34:53 +0100 Subject: [PATCH] Change MG_PATH_MAX for ESP8266 --- mongoose.h | 5 +++++ src/arch_esp8266.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/mongoose.h b/mongoose.h index e4ce27f8..09a9a6d5 100644 --- a/mongoose.h +++ b/mongoose.h @@ -229,8 +229,13 @@ static __inline struct tm *localtime_r(time_t *t, struct tm *tm) { #include +#undef MG_PATH_MAX +#undef MG_ENABLE_DIRLIST + #define MG_DIRSEP '/' #define MG_INT64_FMT "%lld" +#define MG_PATH_MAX 128 +#define MG_ENABLE_DIRLIST 1 #endif diff --git a/src/arch_esp8266.h b/src/arch_esp8266.h index 294a353d..a26b2626 100644 --- a/src/arch_esp8266.h +++ b/src/arch_esp8266.h @@ -21,7 +21,12 @@ #include +#undef MG_PATH_MAX +#undef MG_ENABLE_DIRLIST + #define MG_DIRSEP '/' #define MG_INT64_FMT "%lld" +#define MG_PATH_MAX 128 +#define MG_ENABLE_DIRLIST 1 #endif