On Tue, Jul 17, 2012 at 6:15 PM, Heiko Hund <[email protected]> wrote:
> On Tuesday 17 July 2012 18:11:25 Alon Bar-Lev wrote:
>> #define EWOULDBLOCK WSAWOULDBLOCK
>
> EWOULDBLOCK is already defined in errno.h (also in Windows) and shouldn't be
> redefined in my opinion.
So if this is in one place, better a simple #ifdef
---
if (
#ifdef WIN32
status == WSAEWOULDBLOCK
#else
status == EINPROGRESS
#endif
) {
}
---
I don't think we are using errno.h values in windows, have no time to
check it now. If not, simplest is to #define WSA* as E*.
Alon.