Browse Source

net: fix a Windows compilation issue.

legacy
Sam Hocevar 4 years ago
parent
commit
8c37ce1497
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      src/net/http.cpp

+ 9
- 0
src/net/http.cpp View File

@@ -16,6 +16,15 @@
# define CPPHTTPLIB_OPENSSL_SUPPORT 1 # define CPPHTTPLIB_OPENSSL_SUPPORT 1
#endif #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__ #if __EMSCRIPTEN__
# include <emscripten/fetch.h> # include <emscripten/fetch.h>
#else #else


Loading…
Cancel
Save