浏览代码

net: fix a Windows compilation issue.

legacy
Sam Hocevar 5 年前
父节点
当前提交
8c37ce1497
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      src/net/http.cpp

+ 9
- 0
src/net/http.cpp 查看文件

@@ -16,6 +16,15 @@
# define CPPHTTPLIB_OPENSSL_SUPPORT 1
#endif

#if _WIN32
# define WIN32_LEAN_AND_MEAN 1
# include <windows.h>
# undef NEAR // avoids errors in <inaddr.h>
# undef FAR
# define NEAR
# define FAR
#endif

#if __EMSCRIPTEN__
# include <emscripten/fetch.h>
#else


正在加载...
取消
保存