From 31b1255663a37f879d009b48151511a8361eb6d8 Mon Sep 17 00:00:00 2001 From: Andrew Burks Date: Tue, 30 Jun 2015 15:24:39 -0700 Subject: [PATCH] Fixes #3: unity_fixture tests don't build. unity.c and unity_fixture_malloc_overrides.h neglected to include even though the reference 'size_t' and 'NULL'. --- extras/fixture/src/unity_fixture_malloc_overrides.h | 2 ++ src/unity.c | 1 + 2 files changed, 3 insertions(+) diff --git a/extras/fixture/src/unity_fixture_malloc_overrides.h b/extras/fixture/src/unity_fixture_malloc_overrides.h index 1e10014..a19c1ea 100644 --- a/extras/fixture/src/unity_fixture_malloc_overrides.h +++ b/extras/fixture/src/unity_fixture_malloc_overrides.h @@ -8,6 +8,8 @@ #ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_ #define UNITY_FIXTURE_MALLOC_OVERRIDES_H_ +#include + #define malloc unity_malloc #define calloc unity_calloc #define realloc unity_realloc diff --git a/src/unity.c b/src/unity.c index 4da60f8..b79f27a 100644 --- a/src/unity.c +++ b/src/unity.c @@ -5,6 +5,7 @@ ============================================================================ */ #include "unity.h" +#include #define UNITY_FAIL_AND_BAIL { Unity.CurrentTestFailed = 1; longjmp(Unity.AbortFrame, 1); } #define UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; longjmp(Unity.AbortFrame, 1); }