Skip to content

undef poll at the end if CPPHTTPLIB_USE_POLL #1427

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

Merged
merged 2 commits into from
Nov 14, 2022
Merged

undef poll at the end if CPPHTTPLIB_USE_POLL #1427

merged 2 commits into from
Nov 14, 2022

Conversation

artpaul
Copy link
Contributor

@artpaul artpaul commented Nov 13, 2022

The replacement of poll with WSAPoll should be reverted to avoid propagation to other source files.

httplib.h Outdated
@@ -8405,4 +8405,8 @@ inline SSL_CTX *Client::ssl_context() const {

} // namespace httplib

#ifdef CPPHTTPLIB_USE_POLL
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change it to #if defined(_WIN32) && defined(CPPHTTPLIB_USE_POLL)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@yhirose yhirose merged commit 8799481 into yhirose:master Nov 14, 2022
@yhirose
Copy link
Owner

yhirose commented Nov 14, 2022

Thanks for your contribution!

ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this pull request May 2, 2023
* undef poll at the end if CPPHTTPLIB_USE_POLL

* win32 only
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.

2 participants