diff --git a/src/polyp/xmalloc.h b/src/polyp/xmalloc.h index 9d91d8dc4..49b6d7bca 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