summaryrefslogtreecommitdiffstats
path: root/include/malloc_np.h
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2006-06-30 20:57:41 +0000
committerjasone <jasone@FreeBSD.org>2006-06-30 20:57:41 +0000
commitc1f36cafad57ac7d6d0cd5a6189fc1eb72366e14 (patch)
treebe9344802a82e97640583230af3c63c879e4ef50 /include/malloc_np.h
parente6aa0aff3e572a4ab4ceac3ca83948b592e62f28 (diff)
downloadFreeBSD-src-c1f36cafad57ac7d6d0cd5a6189fc1eb72366e14.zip
FreeBSD-src-c1f36cafad57ac7d6d0cd5a6189fc1eb72366e14.tar.gz
Add __{BEGIN,END}_DECLS macros, so that function prototypes remain
unmangled for C++ programs. Submitted by: Niklas Sorensson <nik@cs.chalmers.se>
Diffstat (limited to 'include/malloc_np.h')
-rw-r--r--include/malloc_np.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/malloc_np.h b/include/malloc_np.h
index bacb805..bd45d19 100644
--- a/include/malloc_np.h
+++ b/include/malloc_np.h
@@ -31,7 +31,11 @@
#ifndef _MALLOC_NP_H_
#define _MALLOC_NP_H_
+#include <sys/cdefs.h>
+#include <sys/types.h>
+__BEGIN_DECLS
size_t malloc_usable_size(const void *ptr);
+__END_DECLS
#endif /* _MALLOC_NP_H_ */
OpenPOWER on IntegriCloud