mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
test/btstack_memory: fix test for newer gcc
This commit is contained in:
parent
21a1351894
commit
716552ac20
@ -55,6 +55,11 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#ifdef ENABLE_MALLOC_TEST
|
||||||
|
extern "C" void * test_malloc(size_t size);
|
||||||
|
#define malloc test_malloc
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MALLOC
|
#ifdef HAVE_MALLOC
|
||||||
typedef struct btstack_memory_buffer {
|
typedef struct btstack_memory_buffer {
|
||||||
struct btstack_memory_buffer * next;
|
struct btstack_memory_buffer * next;
|
||||||
|
@ -23,6 +23,6 @@
|
|||||||
#define HCI_INCOMING_PRE_BUFFER_SIZE 6
|
#define HCI_INCOMING_PRE_BUFFER_SIZE 6
|
||||||
|
|
||||||
// test hook to mock malloc
|
// test hook to mock malloc
|
||||||
#define malloc test_malloc
|
#define ENABLE_MALLOC_TEST
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user