Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pb.h
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-02-24 23:09:25 +0400
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2014-02-24 23:09:25 +0400
commit011a30af9c015b1edd67420d9ca947e9fb499e73 (patch)
tree00d1c6ba3c42a13ae91e7c6ec2b9ae714193eb70 /pb.h
parent842c960d5df4b7715b0c7d2c00adeddf84389421 (diff)
Beginnings of malloc support in pb_decode
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 375b4a5..eb4f94e 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).