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