test/btstack_memory_test: fix malloc test (regression)

This commit is contained in:
Matthias Ringwald 2021-03-08 11:43:54 +01:00
parent caab56b09e
commit e3c90686fb
2 changed files with 10 additions and 0 deletions

View File

@ -55,6 +55,11 @@
#include <stdlib.h>
#ifdef ENABLE_MALLOC_TEST
extern "C" void * test_malloc(size_t size);
#define malloc test_malloc
#endif
#ifdef HAVE_MALLOC
typedef struct btstack_memory_buffer {
struct btstack_memory_buffer * next;

View File

@ -134,6 +134,11 @@ cfile_header_begin = """
#include <stdlib.h>
#ifdef ENABLE_MALLOC_TEST
extern "C" void * test_malloc(size_t size);
#define malloc test_malloc
#endif
#ifdef HAVE_MALLOC
typedef struct btstack_memory_buffer {
struct btstack_memory_buffer * next;