diff options
| author | Damien George <damien@micropython.org> | 2022-11-11 15:43:55 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-11-11 16:24:32 +1100 |
| commit | a513558e3a72b47880faa847de64949e7fc746f6 (patch) | |
| tree | adbada6a58ec0a3d2f7c457a1f5b0f838b7cebd7 /extmod/vfs_lfsx.c | |
| parent | 2f0565367339595bf3130acf8e20d3d4e9bad499 (diff) | |
extmod: Add and reorganise compilation guards and includes.
To reduce dependencies on header files when extmod components are disabled.
Signed-off-by: Damien George <damien.p.george@gmail.com>
Diffstat (limited to 'extmod/vfs_lfsx.c')
| -rw-r--r-- | extmod/vfs_lfsx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extmod/vfs_lfsx.c b/extmod/vfs_lfsx.c index d9617817f..de1f42197 100644 --- a/extmod/vfs_lfsx.c +++ b/extmod/vfs_lfsx.c @@ -24,6 +24,9 @@ * THE SOFTWARE. */ +// This file should be compiled when included from vfs_lfs.c. +#if defined(LFS_BUILD_VERSION) + #include <stdio.h> #include <string.h> @@ -518,3 +521,5 @@ MP_DEFINE_CONST_OBJ_TYPE( ); #undef VFS_LFSx_QSTR + +#endif // defined(LFS_BUILD_VERSION) |
