From 6fca1416057d6ea040109c2ba947356a621bb9e2 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Sat, 9 Mar 2024 17:28:07 -0600 Subject: [PATCH] fix windows build --- Makefile | 4 ++-- source/engine/sched.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dd3573c..07e99cc 100755 --- a/Makefile +++ b/Makefile @@ -159,8 +159,8 @@ endif OBJDIR = $(BIN)/obj # All other sources -OBJS != find source/engine -type f -name '*.c' | grep -vE 'test|tool|example' -CPPOBJS != find source/engine -type f -name '*.cpp' | grep -vE 'test|tool|example' +OBJS != find source/engine -type f -name '*.c' | grep -vE 'test|tool|example|fuzz|main' +CPPOBJS != find source/engine -type f -name '*.cpp' | grep -vE 'test|tool|example|fuzz|main' OBJS += $(CPPOBJS) OBJS += $(shell find source/engine -type f -name '*.m') OBJS := $(patsubst %.cpp, %.o, $(OBJS)) diff --git a/source/engine/sched.h b/source/engine/sched.h index 8c2d079..7916789 100644 --- a/source/engine/sched.h +++ b/source/engine/sched.h @@ -284,7 +284,7 @@ SCHED_API void scheduler_stop(struct scheduler*, int doWait); /* windows requires Windows.h even if you use mingw */ #if defined(_WIN32) || (defined(__MINGW32__) || defined(__MINGW64__)) #define WIN32_LEAN_AND_MEAN - #include + #include #endif /* make sure atomic and pointer types have correct size */