浏览代码

undef poll at the end if CPPHTTPLIB_USE_POLL (#1427)

* undef poll at the end if CPPHTTPLIB_USE_POLL

* win32 only
Pavel Artemkin 3 年之前
父节点
当前提交
87994811a1
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      httplib.h

+ 4 - 0
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