mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
Redefine mkdir only if MG_ENABLE_POSIX_FS==0
This commit is contained in:
1 parent
8b6e02e985
commit
6a3e1e41c4
4 files changed
+8
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user