diff --git a/src/net/http.cpp b/src/net/http.cpp index eabe2dd9..529de8f2 100644 --- a/src/net/http.cpp +++ b/src/net/http.cpp @@ -16,6 +16,15 @@ # define CPPHTTPLIB_OPENSSL_SUPPORT 1 #endif +#if _WIN32 +# define WIN32_LEAN_AND_MEAN 1 +# include +# undef NEAR // avoids errors in +# undef FAR +# define NEAR +# define FAR +#endif + #if __EMSCRIPTEN__ # include #else