mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-04-11 19:28:30 +00:00
Merge pull request #226 from Zefz/mingw-compile-fix
Fix compilation on Mingw-64
This commit is contained in:
@@ -60,7 +60,13 @@ typedef int ssize_t;
|
|||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
|
||||||
|
#ifndef WSA_FLAG_NO_HANDLE_INHERIT
|
||||||
|
#define WSA_FLAG_NO_HANDLE_INHERIT 0x80
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
#pragma comment(lib, "ws2_32.lib")
|
#pragma comment(lib, "ws2_32.lib")
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef strcasecmp
|
#ifndef strcasecmp
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
|
|||||||
Reference in New Issue
Block a user