X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=extra%2Fpb_syshdr.h;h=1ff48230a2d95846749aaa5466386a4643e44302;hb=8a28b70351baf09f2131fee2fc186a96d069cc2e;hp=b9a97a4f5da20714a81e67ef3df4ef6cc9f27477;hpb=ef31774cd902a6f069b8f2b80b870167328f5acb;p=apps%2Fagl-service-can-low-level.git diff --git a/extra/pb_syshdr.h b/extra/pb_syshdr.h index b9a97a4f..1ff48230 100644 --- a/extra/pb_syshdr.h +++ b/extra/pb_syshdr.h @@ -53,6 +53,16 @@ typedef int bool; #endif +/* stdlib.h subset */ +#ifdef PB_ENABLE_MALLOC +#ifdef HAVE_STDLIB_H +#include +#else +void *realloc(void *ptr, size_t size); +void free(void *ptr); +#endif +#endif + /* string.h subset */ #ifdef HAVE_STRING_H #include