Redefine mkdir only if MG_ENABLE_POSIX_FS==0

This commit is contained in:
Sergey Lyubka authored and Sergio R. Caprile committed 2025-06-02 11:04:16 -03:00
1 parent 8b6e02e985
commit 6a3e1e41c4
4 files changed
+8 -2

No files matched your search

+3
View File
@@ -37,10 +37,13 @@ static inline void *mg_calloc(size_t cnt, size_t size) {
return p;
}
#if MG_ENABLE_POSIX_FS
#else
#define mkdir(a, b) mg_mkdir(a, b)
static inline int mg_mkdir(const char *path, mode_t mode) {
(void) path, (void) mode;
return -1;
}
#endif
#endif // MG_ARCH == MG_ARCH_FREERTOS