Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap poll()/WSAPoll() in a function and build compiled library on Windows #2107

Merged
merged 2 commits into from
Mar 12, 2025

Conversation

falbrechtskirchinger
Copy link
Contributor

Instead of using a macro for poll() on Windows, which breaks when the implementation is compiled separately, add a detail::poll_wrapper() function that dispatches to either ::poll() or ::WSAPoll().

Build compiled library on Windows to catch regressions.

Fixes #2106.

Instead of using a macro for poll() on Windows, which breaks when the
implementation is compiled separately, add a detail::poll_wrapper()
function that dispatches to either ::poll() or ::WSAPoll().
@yhirose
Copy link
Owner

yhirose commented Mar 12, 2025

@falbrechtskirchinger looks good to me!

@yhirose yhirose merged commit 2f39723 into yhirose:master Mar 12, 2025
8 of 9 checks passed
@Chuvi-w
Copy link

Chuvi-w commented Mar 12, 2025

Seems, this way should work too. #2108

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.

Mingw32 error (poll was not declared) + strange "poll" def/undef in splitted header.
3 participants