summaryrefslogtreecommitdiff
path: root/extmod/vfs_lfsx.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/vfs_lfsx.c')
-rw-r--r--extmod/vfs_lfsx.c5
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)