summaryrefslogtreecommitdiffstats
path: root/pb.h
diff options
context:
space:
mode:
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pb.h b/pb.h
index b12debe9..138c6bb8 100644
--- a/pb.h
+++ b/pb.h
@@ -8,9 +8,14 @@
#define NANOPB_VERSION nanopb-0.2.1-dev
+#ifdef PB_SYSTEM_HEADER
+#include PB_SYSTEM_HEADER
+#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
+#include <string.h>
+#endif
#ifdef __GNUC__
/* This just reduces memory requirements, but is not required. */