mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
replace write with _write when building with msvc
This commit is contained in:
1 parent
4948bd7ad3
commit
dcab32ef4f
1 file changed
+1
@@ -37,6 +37,7 @@
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#define close(x) closesocket(x)
|
||||
#define write(...) _write(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
namespace dht {
|
||||
|
||||
Reference in new issue
Block a user