Skip to content
Snippets Groups Projects
Unverified Commit cb9fe9d1 authored by Adrien Béraud's avatar Adrien Béraud Committed by GitHub
Browse files

Merge pull request #354 from atraczyk/master

msvc: replace write with _write when building on windows
parents 4948bd7a dcab32ef
Branches
Tags
No related merge requests found
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#define close(x) closesocket(x) #define close(x) closesocket(x)
#define write(...) _write(__VA_ARGS__)
#endif #endif
namespace dht { namespace dht {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment