From 43c751173d363c3e7bceb171873a60a4bf132105 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Mon, 20 Mar 2017 14:09:26 -0400 Subject: [PATCH] stdlib.h explicitly called in fixtures when malloc used, now. (Fixes issue #268) --- extras/fixture/src/unity_fixture_malloc_overrides.h | 1 + 1 file changed, 1 insertion(+) diff --git a/extras/fixture/src/unity_fixture_malloc_overrides.h b/extras/fixture/src/unity_fixture_malloc_overrides.h index 1b176e7..7daba50 100644 --- a/extras/fixture/src/unity_fixture_malloc_overrides.h +++ b/extras/fixture/src/unity_fixture_malloc_overrides.h @@ -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 #define UNITY_FIXTURE_MALLOC(size) malloc(size) #define UNITY_FIXTURE_FREE(ptr) free(ptr) #else -- GitLab