mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 17:28:29 +00:00
Code cleanup
This commit is contained in:
parent
29c56644b0
commit
969744bfeb
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
||||||
#define _CRT_NONSTDC_NO_DEPRECATE
|
#define _CRT_NONSTDC_NO_DEPRECATE
|
||||||
|
|
||||||
#ifndef SO_SYNCHRONOUS_NONALERT
|
#ifndef SO_SYNCHRONOUS_NONALERT
|
||||||
#define SO_SYNCHRONOUS_NONALERT 0x20;
|
#define SO_SYNCHRONOUS_NONALERT 0x20
|
||||||
#endif
|
#endif
|
||||||
#ifndef SO_OPENTYPE
|
#ifndef SO_OPENTYPE
|
||||||
#define SO_OPENTYPE 0x7008
|
#define SO_OPENTYPE 0x7008
|
||||||
|
@ -586,12 +586,12 @@ inline void parse_query_text(const std::string& s, Map& params)
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
class WSInit {
|
class WSInit {
|
||||||
public:
|
public:
|
||||||
WSInit::WSInit() {
|
WSInit() {
|
||||||
WSADATA wsaData;
|
WSADATA wsaData;
|
||||||
WSAStartup(0x0002, &wsaData);
|
WSAStartup(0x0002, &wsaData);
|
||||||
}
|
}
|
||||||
|
|
||||||
WSInit::~WSInit() {
|
~WSInit() {
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue