From ee4d6b064fe9c872e008a37b5b8daf60752a27ae Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 17 May 2006 20:43:49 +0000 Subject: add C++ macros to xmalloc.h git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@921 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/polyp/xmalloc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/polyp/xmalloc.h b/src/polyp/xmalloc.h index 9d91d8dc..49b6d7bc 100644 --- a/src/polyp/xmalloc.h +++ b/src/polyp/xmalloc.h @@ -26,11 +26,14 @@ #include #include #include +#include /** \file * Memory allocation functions. */ +PA_C_DECL_BEGIN + /** Allocate the specified number of bytes, just like malloc() does. However, in case of OOM, terminate */ void* pa_xmalloc(size_t l); @@ -70,4 +73,6 @@ static inline void* pa_xnew0_internal(unsigned n, size_t k) { /** Same as pa_xnew() but set the memory to zero */ #define pa_xnew0(type, n) ((type*) pa_xnew0_internal((n), sizeof(type))) +PA_C_DECL_END + #endif -- cgit