1 /*
2  * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef __ESP_NIMBLE_MEM_H__
8 #define __ESP_NIMBLE_MEM_H__
9 
10 #include <stdlib.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 // #pragma message "This file should be replaced with bt_osi_mem.h, used here for compatibility"
17 
18 #include "bt_osi_mem.h"
19 #define nimble_platform_mem_malloc bt_osi_mem_malloc
20 #define nimble_platform_mem_calloc bt_osi_mem_calloc
21 #define nimble_platform_mem_free bt_osi_mem_free
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif /* __ESP_NIMBLE_MEM_H__ */
28