Add missing mkdir() on ARM targets

This commit is contained in:
Sergey Lyubka 2022-01-18 19:31:10 +00:00
parent d0857fe36c
commit 1259ca9ac9
3 changed files with 4 additions and 2 deletions

View File

@ -210,8 +210,8 @@ static inline void *mg_calloc(int cnt, size_t size) {
#define calloc(a, b) mg_calloc((a), (b)) #define calloc(a, b) mg_calloc((a), (b))
#define free(a) vPortFree(a) #define free(a) vPortFree(a)
#define malloc(a) pvPortMalloc(a) #define malloc(a) pvPortMalloc(a)
#define gmtime_r(a, b) gmtime(a) #define gmtime_r(a, b) gmtime(a)
#define mkdir(a, b) (-1)
#endif // MG_ARCH == MG_ARCH_FREERTOS_LWIP #endif // MG_ARCH == MG_ARCH_FREERTOS_LWIP
@ -272,6 +272,7 @@ static inline void *mg_calloc(int cnt, size_t size) {
#define calloc(a, b) mg_calloc((a), (b)) #define calloc(a, b) mg_calloc((a), (b))
#define free(a) vPortFree(a) #define free(a) vPortFree(a)
#define malloc(a) pvPortMalloc(a) #define malloc(a) pvPortMalloc(a)
#define mkdir(a, b) (-1)
#define gmtime_r(a, b) gmtime(a) #define gmtime_r(a, b) gmtime(a)

View File

@ -47,7 +47,7 @@ static inline void *mg_calloc(int cnt, size_t size) {
#define calloc(a, b) mg_calloc((a), (b)) #define calloc(a, b) mg_calloc((a), (b))
#define free(a) vPortFree(a) #define free(a) vPortFree(a)
#define malloc(a) pvPortMalloc(a) #define malloc(a) pvPortMalloc(a)
#define gmtime_r(a, b) gmtime(a) #define gmtime_r(a, b) gmtime(a)
#define mkdir(a, b) (-1)
#endif // MG_ARCH == MG_ARCH_FREERTOS_LWIP #endif // MG_ARCH == MG_ARCH_FREERTOS_LWIP

View File

@ -56,6 +56,7 @@ static inline void *mg_calloc(int cnt, size_t size) {
#define calloc(a, b) mg_calloc((a), (b)) #define calloc(a, b) mg_calloc((a), (b))
#define free(a) vPortFree(a) #define free(a) vPortFree(a)
#define malloc(a) pvPortMalloc(a) #define malloc(a) pvPortMalloc(a)
#define mkdir(a, b) (-1)
#define gmtime_r(a, b) gmtime(a) #define gmtime_r(a, b) gmtime(a)