Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move malloc_wrappers.c to tests/common
[apps/agl-service-can-low-level.git]
/
extra
/
pb_syshdr.h
diff --git
a/extra/pb_syshdr.h
b/extra/pb_syshdr.h
index
b9a97a4
..
1ff4823
100644
(file)
--- a/
extra/pb_syshdr.h
+++ b/
extra/pb_syshdr.h
@@
-53,6
+53,16
@@
typedef int bool;
#endif
#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>
/* string.h subset */
#ifdef HAVE_STRING_H
#include <string.h>