Skip to content

0.3.1 --- the socket interface follows the C library - #18

Merged
Sunrisepeak merged 3 commits into
masterfrom
openkal-0.13
Sep 17, 2026
Merged

Sunrisepeak merged 3 commits into
masterfrom
openkal-0.13

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Closes the tinyhttps half of mcpplibs/mcpp-index#435. The socket interface was selected by _WIN32; which interface exists is decided by the C library. TINYHTTPS_WINSOCK is derived once from _WIN32 and TINYHTTPS_POSIX_SOCKETS, and mcpp.toml defines the latter under cfg(c-abi = "musl"). A Windows build with the platform C runtime is unchanged. Part of the openkal 0.13 wave; the Windows cross build above openkal is verified once mcpp#662's fix is released.

src/socket.cppm and src/platform.cppm selected Windows Sockets with _WIN32,
which is a statement about the operating system. Which socket interface exists
is decided by the C library: above openkal on Windows the C library is musl,
winsock2.h is not in the graph, and the build failed (mcpp-index#435).

TINYHTTPS_WINSOCK is now derived once, from _WIN32 and TINYHTTPS_POSIX_SOCKETS,
and mcpp.toml defines the latter under cfg(c-abi = "musl"). A Windows build
with the platform's C runtime is unchanged. platform::is_windows is renamed
uses_winsock, which is what its one caller asks.

Comments carry no emoji.
@Sunrisepeak
Sunrisepeak merged commit c34f1ec into master Sep 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant