Add define for strdup

This commit is contained in:
cpq
2022-08-20 00:02:36 +01:00
parent fee6de6a7f
commit 101cc1a672
+1
View File
@@ -39,6 +39,7 @@ static inline void *mg_calloc(int cnt, size_t size) {
#define calloc(a, b) mg_calloc((a), (b))
#define free(a) vPortFree(a)
#define malloc(a) pvPortMalloc(a)
#define strdup(s) ((char *) mg_strdup(mg_str(s)).ptr)
#define mkdir(a, b) (-1)
#ifndef MG_IO_SIZE