From 287a70f935f92a35b19b315b2cb56839ecd5bfe9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 25 Feb 2016 09:05:40 +0100 Subject: malloc: Clean up "malloc_p.h" header file --- cpukit/libcsupport/src/malloc_deferred.c | 2 +- cpukit/libcsupport/src/malloc_p.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cpukit/libcsupport/src/malloc_deferred.c b/cpukit/libcsupport/src/malloc_deferred.c index 81559c4c39..e85b2646ea 100644 --- a/cpukit/libcsupport/src/malloc_deferred.c +++ b/cpukit/libcsupport/src/malloc_deferred.c @@ -23,10 +23,10 @@ #ifdef RTEMS_NEWLIB #include -#include #include "malloc_p.h" +#include #include #include diff --git a/cpukit/libcsupport/src/malloc_p.h b/cpukit/libcsupport/src/malloc_p.h index 89adc5fdfe..6609526fa8 100644 --- a/cpukit/libcsupport/src/malloc_p.h +++ b/cpukit/libcsupport/src/malloc_p.h @@ -10,16 +10,12 @@ */ #include -#include #include #include -#ifdef RTEMS_NEWLIB -#include -#endif - -#include -#include +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ /* * Process deferred free operations @@ -27,3 +23,7 @@ bool malloc_is_system_state_OK(void); void malloc_deferred_frees_process(void); void malloc_deferred_free(void *); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ -- cgit v1.2.3