Commit 6332e720 authored by Ulrich Huber's avatar Ulrich Huber Committed by Oliver Horst
Browse files

[fix] Fix malloc defines by inclusion of the appropriate headers

parent 59e3e6ce
......@@ -10,6 +10,10 @@ project(
LANGUAGES C ASM
)
find_package(
freertos-headers 10.0.0
REQUIRED
)
add_library(
toki-libc-repl-sys-headers
......@@ -17,6 +21,11 @@ add_library(
INTERFACE
)
target_link_libraries(
toki-libc-repl-sys-headers
INTERFACE freertos-headers
)
target_include_directories(
toki-libc-repl-sys-headers
......
#ifndef TOKI_MALLOC_H
#define TOKI_MALLOC_H
#include <freertos/portable.h>
#define malloc pvPortMalloc
#define free vPortFree
......
......@@ -2,6 +2,8 @@
include(CMakeFindDependencyMacro)
find_dependency(freertos-headers)
# Import targets
include(${CMAKE_CURRENT_LIST_DIR}/toki-libc-repl-sys-headers-targets.cmake)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment