summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/stdlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h
index eb67d20fe7..8bae40f2e1 100644
--- a/src/include/stdlib.h
+++ b/src/include/stdlib.h
@@ -3,6 +3,8 @@
#include <stddef.h>
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+
extern void *malloc(size_t size);
void free(void *ptr);