mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-15 10:29:47 +00:00
13 lines
331 B
C
13 lines
331 B
C
void mg_connect_resolved(struct mg_connection *);
|
|
|
|
#if MG_ARCH == MG_ARCH_FREERTOS
|
|
static inline void *mg_calloc(int cnt, size_t size) {
|
|
void *p = pvPortMalloc(size);
|
|
if (p != NULL) memset(p, 0, size);
|
|
return p;
|
|
}
|
|
#define calloc(a, b) mg_calloc((a), (b))
|
|
#define malloc(a) pvPortMalloc(a)
|
|
#define free(a) vPortFree(a)
|
|
#endif
|