From 03e53930723dce5793678365f350e94c2bc358dc Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sat, 9 Mar 2013 14:56:34 +0200 Subject: Add PB_SYSTEM_HEADER compile time option. This allows replacing the C99 standard include file names with a single system-specific file. It should provide all the necessary system functions (typedefs, memset, memcpy, strlen). Update issue 62 Status: FixedInGit --- pb.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pb.h') 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 #include #include +#include +#endif #ifdef __GNUC__ /* This just reduces memory requirements, but is not required. */ -- cgit 1.2.3-korg