From 09df542db82ac92081dec766d8b8c3395f3582cb Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Tue, 18 Jan 2022 08:02:41 +0000 Subject: [PATCH] Fix unamalgamated build --- mongoose.c | 2 ++ mongoose.h | 5 ----- src/fs_fat.c | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mongoose.c b/mongoose.c index 86e9cf43..9a72b650 100644 --- a/mongoose.c +++ b/mongoose.c @@ -436,6 +436,8 @@ void mg_fs_close(struct mg_fd *fd) { #ifdef MG_ENABLE_LINES #line 1 "src/fs_fat.c" #endif + + #if MG_ENABLE_FATFS #include diff --git a/mongoose.h b/mongoose.h index 9be79678..7f9de745 100644 --- a/mongoose.h +++ b/mongoose.h @@ -163,11 +163,6 @@ static __inline struct tm *localtime_r(const time_t *t, struct tm *tm) { #endif -#if defined(MG_ENABLE_FF) && MG_ENABLE_FF == 1 -#include -#endif - - #if MG_ARCH == MG_ARCH_FREERTOS_LWIP #include diff --git a/src/fs_fat.c b/src/fs_fat.c index 04079c55..eaf6e464 100644 --- a/src/fs_fat.c +++ b/src/fs_fat.c @@ -1,3 +1,5 @@ +#include "fs.h" + #if MG_ENABLE_FATFS #include