summaryrefslogtreecommitdiffstats
path: root/src/polyp
diff options
context:
space:
mode:
Diffstat (limited to 'src/polyp')
-rw-r--r--src/polyp/xmalloc.h5
1 files changed, 5 insertions, 0 deletions
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 <stdlib.h>
#include <limits.h>
#include <assert.h>
+#include <polyp/cdecl.h>
/** \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