summaryrefslogtreecommitdiffstats
path: root/pb.h
diff options
context:
space:
mode:
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pb.h b/pb.h
index 375b4a5a..eb4f94e7 100644
--- a/pb.h
+++ b/pb.h
@@ -63,6 +63,10 @@
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
+
+#ifdef PB_ENABLE_MALLOC
+#include <stdlib.h>
+#endif
#endif
/* Macro for defining packed structures (compiler dependent).