Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkgs/c/compat.glfw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ package = {
},
},
windows = {
-- THE WIN32 BACKEND IS WRITTEN FOR THE SYSTEM'S C LIBRARY AND ITS
-- HEADERS (<windows.h>, user32, gdi32): a requirement on the target
-- side (mcpp SPEC-002 §2.2), as the Linux row states glibc. Every
-- route that has the Win32 API answers it -- the MSVC row, the
-- MinGW-w64 payload and the mingw-w64-sysroot base, which mcpp's
-- mingw-llvm provider supplies on every host (macOS and Linux
-- included). A Windows identity whose C library is another
-- (openkal-musl over openkal-windows) has no window system, and is
-- refused at resolution, naming this requirement.
requires = { "mcpp:c-abi=ucrt" },
cflags = { "-D_GLFW_WIN32", "-DUNICODE", "-D_UNICODE" },
sources = {
"src/win32_time.c",
Expand Down
Loading