fix(tlsf) do not use <assert.h>

fixes: #2341
This commit is contained in:
Gabor Kiss-Vamosi
2021-07-01 14:20:28 +02:00
parent 6e83d378e9
commit c9745b9c4e
+3 -1
View File
@@ -1,12 +1,12 @@
#include "../lv_conf_internal.h"
#if LV_MEM_CUSTOM == 0
#include <assert.h>
#include <limits.h>
#include <stddef.h>
#include "lv_tlsf.h"
#include "lv_mem.h"
#include "lv_log.h"
#include "lv_assert.h"
#define printf LV_LOG_ERROR
#define TLSF_MAX_POOL_SIZE LV_MEM_SIZE
@@ -281,6 +281,8 @@ enum tlsf_private
/*
** Set assert macro, if it has not been provided by the user.
*/
#define tlsf_assert LV_ASSERT
#if !defined (tlsf_assert)
#define tlsf_assert assert
#endif