Beginnings of malloc support in pb_decode

This commit is contained in:
Petteri Aimonen
2014-02-24 21:09:25 +02:00
parent 842c960d5d
commit 011a30af9c
4 changed files with 362 additions and 6 deletions

4
pb.h
View File

@@ -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).