Skip to content

Commit 709dcbd

Browse files
committed
extmod/modvfs: Fix build without FFCONF_H
Signed-off-by: Martin Milata <martin@martinmilata.cz>
1 parent 7e0f9ad commit 709dcbd

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

extmod/modvfs.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,22 @@
2929
#if MICROPY_PY_VFS
3030

3131
#include "extmod/vfs.h"
32+
33+
#if MICROPY_VFS_FAT
3234
#include "extmod/vfs_fat.h"
35+
#endif
36+
37+
#if MICROPY_VFS_LFS1 || MICROPY_VFS_LFS2
3338
#include "extmod/vfs_lfs.h"
39+
#endif
40+
41+
#if MICROPY_VFS_POSIX
3442
#include "extmod/vfs_posix.h"
43+
#endif
44+
45+
#if MICROPY_VFS_ROM
3546
#include "extmod/vfs_rom.h"
47+
#endif
3648

3749
#if !MICROPY_VFS
3850
#error "MICROPY_PY_VFS requires MICROPY_VFS"

0 commit comments

Comments
 (0)