event: don't redefine error codes
Error codes can be defined in visual studio. Unconditional redefine causes warnings.
This commit is contained in:
@@ -41,9 +41,15 @@
|
|||||||
#define _sleep(x) usleep((x) * 1000)
|
#define _sleep(x) usleep((x) * 1000)
|
||||||
#else
|
#else
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
#ifndef ETIMEDOUT
|
||||||
#define ETIMEDOUT WSAETIMEDOUT
|
#define ETIMEDOUT WSAETIMEDOUT
|
||||||
|
#endif
|
||||||
|
#ifndef ECONNRESET
|
||||||
#define ECONNRESET WSAECONNRESET
|
#define ECONNRESET WSAECONNRESET
|
||||||
|
#endif
|
||||||
|
#ifndef ECONNABORTED
|
||||||
#define ECONNABORTED WSAECONNABORTED
|
#define ECONNABORTED WSAECONNABORTED
|
||||||
|
#endif
|
||||||
#define _sleep(x) Sleep(x)
|
#define _sleep(x) Sleep(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user