fix(cpn): windows build failing because sbrk does not exist on mingw (#5135)

This commit is contained in:
philmoz
2024-06-07 13:44:56 +10:00
committed by GitHub
parent 8e64c3bbb1
commit f8d542c5e2
+2 -2
View File
@@ -61,8 +61,8 @@
#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
#define LV_MEM_POOL_INCLUDE <stdlib.h>
#define LV_MEM_POOL_ALLOC malloc
#endif
#else /*LV_MEM_CUSTOM*/