Skip to content

Commit 88605cf

Browse files
authored
Merge pull request #130 from baba-dev/codex/fix-missing-esp_vfs_fat.h-header
fix: guard esp vfs fat include
2 parents 62d5490 + 91621eb commit 88605cf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

custom/assets/asset_mount.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,13 @@ static void lv_fs_if_init(void)
170170
#include "driver/sdmmc_host.h"
171171
#include "esp_err.h"
172172
#include "esp_log.h"
173+
#if defined(__has_include)
174+
#if __has_include("esp_vfs_fat.h")
173175
#include "esp_vfs_fat.h"
176+
#endif
177+
#else
178+
#include "esp_vfs_fat.h"
179+
#endif
174180
#include "sdmmc_cmd.h"
175181
#endif
176182

0 commit comments

Comments
 (0)