/* Desktop port: there is one heap, so the capability flags are accepted and ignored */ #pragma once #include #include #define MALLOC_CAP_8BIT (1u << 2) #define MALLOC_CAP_SPIRAM (1u << 10) #define MALLOC_CAP_INTERNAL (1u << 11) #define MALLOC_CAP_DEFAULT (1u << 12) static inline void *heap_caps_malloc(size_t size, unsigned caps) { (void)caps; return malloc(size); } static inline void *heap_caps_calloc(size_t n, size_t size, unsigned caps) { (void)caps; return calloc(n, size); } static inline void heap_caps_free(void *p) { free(p); }