From 78a6842d2f90787f1b2d2af648e59864b3617bb4 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Fri, 30 Jun 2006 20:57:41 +0000 Subject: [PATCH] Add __{BEGIN,END}_DECLS macros, so that function prototypes remain unmangled for C++ programs. Submitted by: Niklas Sorensson --- include/malloc_np.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/malloc_np.h b/include/malloc_np.h index bacb8052d42..bd45d195b8c 100644 --- a/include/malloc_np.h +++ b/include/malloc_np.h @@ -31,7 +31,11 @@ #ifndef _MALLOC_NP_H_ #define _MALLOC_NP_H_ +#include +#include +__BEGIN_DECLS size_t malloc_usable_size(const void *ptr); +__END_DECLS #endif /* _MALLOC_NP_H_ */