1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00

stdlib.h explicitly called in fixtures when malloc used, now. (Fixes issue #268)

This commit is contained in:
Mark VanderVoord
2017-03-20 14:09:26 -04:00
parent 8723d50f0e
commit 43c751173d

View File

@@ -26,6 +26,7 @@
* For example, when using FreeRTOS UNITY_FIXTURE_MALLOC becomes pvPortMalloc()
* and UNITY_FIXTURE_FREE becomes vPortFree(). */
#if !defined(UNITY_FIXTURE_MALLOC) || !defined(UNITY_FIXTURE_FREE)
#include <stdlib.h>
#define UNITY_FIXTURE_MALLOC(size) malloc(size)
#define UNITY_FIXTURE_FREE(ptr) free(ptr)
#else