From 7a000c1caafc1eba63bbd866275f92dc23340476 Mon Sep 17 00:00:00 2001 From: CPunch Date: Mon, 14 Mar 2022 00:58:58 -0500 Subject: [PATCH] fixed laikaT_newTask, check for MacOS --- CMakeLists.txt | 4 +++- lib/src/ltask.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e77ca7..32be7d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,9 @@ add_subdirectory(tools) # these subprojects don't support windows (sorry) if(NOT WIN32) - add_subdirectory(bot) # windows support Soon:tm: add_subdirectory(cnc) add_subdirectory(shell) + if(NOT APPLE) + add_subdirectory(bot) # windows support Soon:tm: + endif() endif() diff --git a/lib/src/ltask.c b/lib/src/ltask.c index 188c3b0..cfabf9e 100644 --- a/lib/src/ltask.c +++ b/lib/src/ltask.c @@ -74,6 +74,7 @@ struct sLaika_task *laikaT_newTask(struct sLaika_taskService *service, int delta task->next = NULL; scheduleTask(service, task); + return task; } void laikaT_delTask(struct sLaika_taskService *service, struct sLaika_task *task) {