summaryrefslogtreecommitdiffstats
path: root/src/malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc.h')
-rw-r--r--src/malloc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/malloc.h b/src/malloc.h
index f8c1ba1..264dd48 100644
--- a/src/malloc.h
+++ b/src/malloc.h
@@ -26,6 +26,9 @@
#include <stdlib.h>
#include <string.h>
+#include "canberra.h"
+#include "macro.h"
+
#define ca_malloc malloc
#define ca_free free
#define ca_malloc0(size) calloc(1, (size))
@@ -38,6 +41,6 @@ void* ca_memdup(const void* p, size_t size);
#define ca_new0(t, n) ((t*) ca_malloc0(sizeof(t)*(n)))
#define ca_newdup(t, p, n) ((t*) ca_memdup(p, sizeof(t)*(n)))
-char *ca_sprintf_malloc(const char *format, ...);
+char *ca_sprintf_malloc(const char *format, ...) CA_GCC_PRINTF_ATTR(1,2);
#endif