From 4e3151406cddfea1dff41132e1dbb36742bfbb41 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 3 Feb 2023 16:58:52 +0100 Subject: [PATCH] sys/vfs_default: make include save with !vfs module This allows to remove #ifdefs on the board level. --- sys/include/vfs_default.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/include/vfs_default.h b/sys/include/vfs_default.h index a33a2e920e..dc960f3922 100644 --- a/sys/include/vfs_default.h +++ b/sys/include/vfs_default.h @@ -21,7 +21,13 @@ #define VFS_DEFAULT_H #include "board.h" +#include "modules.h" +#if IS_USED(MODULE_VFS) || DOXYGEN #include "vfs.h" +#else +/* don't try to create auto-mounts if there is no VFS module */ +#define VFS_AUTO_MOUNT(type, mtd, path, idx) +#endif #if IS_USED(MODULE_FATFS_VFS) #include "fs/fatfs.h"