Github Issue #130 (XMALLOC_USER, NO_WOLFSSL_MEMORY) with FREERTOS

This commit is contained in:
kaleb-himes
2015-10-02 10:56:19 -06:00
parent dd262fe939
commit 67e08e48c5

View File

@ -381,9 +381,13 @@ static char *fgets(char *buff, int sz, FILE *fp)
#ifdef FREERTOS
#include "FreeRTOS.h"
/* FreeRTOS pvPortRealloc() only in AVR32_UC3 port */
#define XMALLOC(s, h, type) pvPortMalloc((s))
#define XFREE(p, h, type) vPortFree((p))
#if !defined(XMALLOC_USER) && !defined(NO_WOLFSSL_MEMORY)
#define XMALLOC(s, h, type) pvPortMalloc((s))
#define XFREE(p, h, type) vPortFree((p))
#endif
#ifndef NO_WRITEV
#define NO_WRITEV
#endif