Commit | Line | Data |
---|---|---|
20a96d42 M |
1 | #ifndef WIN32_ERRNOWRAPPER_H_ |
2 | #define WIN32_ERRNOWRAPPER_H_ | |
3 | ||
4 | #undef errno | |
5 | #define errno WSAGetLastError() | |
6 | #undef EAGAIN | |
7 | #undef EWOULDBLOCK | |
8 | #undef EINTR | |
9 | #undef EINPROGRESS | |
10 | ||
11 | #define EWOULDBLOCK WSAEWOULDBLOCK | |
f96b24fa | 12 | #define EAGAIN WSAEWOULDBLOCK //same on windows |
20a96d42 | 13 | #define EINTR WSAEINTR |
f96b24fa RI |
14 | #define EINPROGRESS WSAEWOULDBLOCK //does not map to WSAEINPROGRESS ! |
15 | ||
20a96d42 | 16 | #endif //WIN32_ERRNOWRAPPER_H_ |