Commit2b7d2254Recorded16 Mar 2026Repositorysigil-freetype

Fix Windows FFI build and missing test imports

Message

Guard Unix-only dlopen helpers (try_dlopen, try_linker_script, search_library_path) with #ifndef _WIN32 so the Windows cross-compile via Zig doesn't see undeclared dlopen/RTLD_NOW. The main platform dispatch in ffi_open_library was already guarded.

Add missing (sigil fs) import to cairo, harfbuzz, and freetype tests that use file-exists? — caused unbound variable error in CI.

Changed
 test/test-freetype.sgl | 1 +
 1 file changed, 1 insertion(+)
Diff
test/test-freetype.sglmodified
@@ -3,6 +3,7 @@
3
4
(import (sigil core)
5
(sigil test)
+6
(sigil fs)
7
(sigil ffi)
8
(sigil io)
9
(sigil process)