From 68f42072167234f2b88bd9e37d73a52b8e3d8202 Mon Sep 17 00:00:00 2001 From: William Bell <62452284+Ugric@users.noreply.github.com> Date: Sat, 16 Aug 2025 00:54:33 +0100 Subject: [PATCH] fix for winblows --- Makefile | 7 ++++++- src/runtime/call/call.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 928bf91..d4ace1a 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,12 @@ $(BINARY): $(CFILES) $(LEXER_C) $(LEXER_H) gcc -O3 -o $(BINARY) $(CFILES) $(CFLAGS) -s windows: $(CFILES) $(LEXER_C) $(LEXER_H) - find external/xxhash external/cwalk external/libdye src -name '*.c' > sources.txt + ( + echo -n "external/xxhash/xxhash.c " + echo -n "external/cwalk/src/cwalk.c " + echo -n "external/libdye/src/dye.c " + find src -name '*.c' -print0 | xargs -0 echo -n + ) > sources.txt mkdir -p bin gcc -O3 -march=native -o $(BINARY) @sources.txt $(CFLAGS) diff --git a/src/runtime/call/call.c b/src/runtime/call/call.c index a3da057..6f53ac7 100644 --- a/src/runtime/call/call.c +++ b/src/runtime/call/call.c @@ -16,7 +16,9 @@ #include #if defined(_WIN32) +#ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0602 +#endif #include #include