From 87994811a1321ac03947eaf53e91357928dee2ca Mon Sep 17 00:00:00 2001 From: Pavel Artemkin Date: Mon, 14 Nov 2022 07:49:49 +0500 Subject: [PATCH] undef poll at the end if CPPHTTPLIB_USE_POLL (#1427) * undef poll at the end if CPPHTTPLIB_USE_POLL * win32 only --- httplib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/httplib.h b/httplib.h index 05732d5..3809828 100644 --- a/httplib.h +++ b/httplib.h @@ -8405,4 +8405,8 @@ inline SSL_CTX *Client::ssl_context() const { } // namespace httplib +#if defined(_WIN32) && defined(CPPHTTPLIB_USE_POLL) +#undef poll +#endif + #endif // CPPHTTPLIB_HTTPLIB_H