summaryrefslogtreecommitdiffstats
path: root/xmalloc.h
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2016-02-07 00:04:46 +0000
committerThomas Adam <thomas@xteddy.org>2016-02-07 00:04:46 +0000
commitf7c8f1ae291b0211734fe2c902a786033a9e0f3f (patch)
tree24c0cb5cedafb9f538338b75557f6e4d61a82cbd /xmalloc.h
parentba97ae1737fbbdc7d6cd4ce4f8f0b4a3d77f027e (diff)
xmalloc: define __bounded__ where necessary
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmalloc.h b/xmalloc.h
index d331ce99..0360b0d9 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -19,6 +19,10 @@
#ifndef XMALLOC_H
#define XMALLOC_H
+#if !defined(__bounded__)
+# define __bounded__(x, y, z)
+#endif
+
void *xmalloc(size_t);
void *xcalloc(size_t, size_t);
void *xrealloc(void *, size_t);