diff options
author | jasone <jasone@FreeBSD.org> | 2006-06-30 20:57:41 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2006-06-30 20:57:41 +0000 |
commit | c1f36cafad57ac7d6d0cd5a6189fc1eb72366e14 (patch) | |
tree | be9344802a82e97640583230af3c63c879e4ef50 /include | |
parent | e6aa0aff3e572a4ab4ceac3ca83948b592e62f28 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | include/malloc_np.h | 4 |
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_ */ |