diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-13 21:23:31 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-13 21:23:31 +1100 |
commit | 643876fb77d45540e5b82f450a7907f39ec95c6a (patch) | |
tree | 10b3a4fd47938c22794c9d0f1c8d0a883fd3a65d /extmod/vfs_fat_diskio.c | |
parent | f5aac7d33fa04c1709123f8b5667476e0d32c1ff (diff) |
extmod/vfs_fat: Allow to compile with MICROPY_VFS_FAT disabled.
Some ports may want to compile with generic MICROPY_VFS support but without
the VfsFat class. This patch allows such a thing.
Diffstat (limited to 'extmod/vfs_fat_diskio.c')
-rw-r--r-- | extmod/vfs_fat_diskio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/vfs_fat_diskio.c b/extmod/vfs_fat_diskio.c index 7efcc22f2..24c00ffba 100644 --- a/extmod/vfs_fat_diskio.c +++ b/extmod/vfs_fat_diskio.c @@ -28,7 +28,7 @@ */ #include "py/mpconfig.h" -#if MICROPY_VFS +#if MICROPY_VFS && MICROPY_VFS_FAT #include <stdint.h> #include <stdio.h> @@ -277,4 +277,4 @@ DRESULT disk_ioctl ( } } -#endif // MICROPY_VFS +#endif // MICROPY_VFS && MICROPY_VFS_FAT |