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)
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#ifndef ETIMEDOUT
|
||||
#define ETIMEDOUT WSAETIMEDOUT
|
||||
#endif
|
||||
#ifndef ECONNRESET
|
||||
#define ECONNRESET WSAECONNRESET
|
||||
#endif
|
||||
#ifndef ECONNABORTED
|
||||
#define ECONNABORTED WSAECONNABORTED
|
||||
#endif
|
||||
#define _sleep(x) Sleep(x)
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user