summaryrefslogtreecommitdiffstats
path: root/extra/pb_syshdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pb_syshdr.h')
-rw-r--r--extra/pb_syshdr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/pb_syshdr.h b/extra/pb_syshdr.h
index b9a97a4f..1ff48230 100644
--- a/extra/pb_syshdr.h
+++ b/extra/pb_syshdr.h
@@ -53,6 +53,16 @@ typedef int bool;
#endif
+/* stdlib.h subset */
+#ifdef PB_ENABLE_MALLOC
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#else
+void *realloc(void *ptr, size_t size);
+void free(void *ptr);
+#endif
+#endif
+
/* string.h subset */
#ifdef HAVE_STRING_H
#include <string.h>