From d08a605dacb33f89a63c5a396e06d369adebca1c Mon Sep 17 00:00:00 2001 From: Rich Evans Date: Thu, 12 Feb 2015 12:17:10 +0000 Subject: [PATCH] Remove platform guard in mem buffer alloc --- library/memory_buffer_alloc.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/library/memory_buffer_alloc.c b/library/memory_buffer_alloc.c index b7d583b00..773e54ff0 100644 --- a/library/memory_buffer_alloc.c +++ b/library/memory_buffer_alloc.c @@ -30,16 +30,12 @@ #include "polarssl/memory_buffer_alloc.h" +/* No need for the header guard as POLARSSL_MEMORY_BUFFER_ALLOC_C + is dependent upon POLARSSL_PLATFORM_C */ +#include "polarssl/platform.h" + #include -#if defined(POLARSSL_MEMORY_DEBUG) -#if defined(POLARSSL_PLATFORM_C) -#include "polarssl/platform.h" -#else -#include -#define polarssl_fprintf fprintf -#endif /* POLARSSL_PLATFORM_C */ -#endif /* POLARSSL_MEMORY_DEBUG */ #if defined(POLARSSL_MEMORY_BACKTRACE) #include #endif