fix(cpn): 'variable length array' warning (#6205)

This commit is contained in:
philmoz
2025-05-06 19:44:00 +10:00
committed by GitHub
parent a3e1f1c021
commit 0f54a4d902
2 changed files with 11 additions and 6 deletions
+8 -2
View File
@@ -65,8 +65,14 @@
#if LV_MEM_ADR == 0
//#define LV_MEM_POOL_INCLUDE your_alloc_library /* Uncomment if using an external allocator*/
//#define LV_MEM_POOL_ALLOC your_alloc /* Uncomment if using an external allocator*/
#define LV_MEM_POOL_INCLUDE <unistd.h>
#define LV_MEM_POOL_ALLOC sbrk
#if defined(SIMU)
// 'sbrk' does not exist on Windows :(
#define LV_MEM_POOL_INCLUDE <stdlib.h>
#define LV_MEM_POOL_ALLOC malloc
#else
#define LV_MEM_POOL_INCLUDE <unistd.h>
#define LV_MEM_POOL_ALLOC sbrk
#endif
#endif
#else /*LV_MEM_CUSTOM*/