Fix unamalgamated build

This commit is contained in:
Sergey Lyubka 2022-01-18 08:02:41 +00:00
parent 1df102ab93
commit 09df542db8
3 changed files with 4 additions and 5 deletions

View File

@ -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 <ff.h>

View File

@ -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 <ff.h>
#endif
#if MG_ARCH == MG_ARCH_FREERTOS_LWIP
#include <stdarg.h>

View File

@ -1,3 +1,5 @@
#include "fs.h"
#if MG_ENABLE_FATFS
#include <ff.h>