diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-12-26 17:08:17 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-12-26 17:08:17 +0200 |
commit | 8a28b70351baf09f2131fee2fc186a96d069cc2e (patch) | |
tree | a07c1028965032ebe438f9c4e8585dcda4f6c386 /tests/common/malloc_wrappers_syshdr.h | |
parent | e5cbee84e12e87b342d7c57808b009387e1ba2bb (diff) |
Move malloc_wrappers.c to tests/common
Diffstat (limited to 'tests/common/malloc_wrappers_syshdr.h')
-rw-r--r-- | tests/common/malloc_wrappers_syshdr.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/common/malloc_wrappers_syshdr.h b/tests/common/malloc_wrappers_syshdr.h new file mode 100644 index 00000000..d295d9ed --- /dev/null +++ b/tests/common/malloc_wrappers_syshdr.h @@ -0,0 +1,15 @@ +/* This is just a wrapper in order to get our own malloc wrappers into nanopb core. */ + +#define pb_realloc(ptr,size) counting_realloc(ptr,size) +#define pb_free(ptr) counting_free(ptr) + +#ifdef PB_OLD_SYSHDR +#include PB_OLD_SYSHDR +#else +#include <stdint.h> +#include <stddef.h> +#include <stdbool.h> +#include <string.h> +#endif + +#include <malloc_wrappers.h> |