Update
I just got windows to compile with zig. But The question about which flags I might need to add for kapi to work is still open for anyone who knows how I might link on windows. I'll still keep poking
Thanks!
diff --git a/Makefile b/Makefile
index e58c586..65344c6 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,8 @@ OS := $(shell uname -s | tr "[:upper:]" "[:lower:]")
$(info OS="$(OS)")
# Win-64
-ifeq (mingw64_nt-10.0-22000,$(OS))
-CC=gcc -DWIN32=1
+ifeq (mingw64_nt-10.0-26100,$(OS))
+CC=zig cc -target x86_64-windows #gcc -DWIN32=1
PRODFLAGS += -D_FILE_OFFSET_BITS=64
LDFLAGS = -lws2_32 -static -lpthread
OBJS= src/win/mman.o src/win/dlfcn.o src/win/safe-ctype.o src/win/fnmatch.o \
@@ -154,7 +154,7 @@ TAGS: *.c *.h
.PHONY: all clean install android-debug
# Dependencies.
-ifeq (mingw64_nt-10.0,$(OS))
+ifeq (mingw64_nt-10.0-26100,$(OS))
src/win/dlfcn.c: src/win/dlfcn.h
src/win/mman.c: src/win/mman.h
src/win/safe-ctype.c: src/win/safe-ctype.h