Hi, On Tue, Jul 17, 2012 at 05:09:34PM +0200, Heiko Hund wrote: > if (status == EINPROGRESS > #ifdef WIN32 > || status == WSAEWOULDBLOCK > #endif > )
Please let's not do that. > or slightly less disturbing > > #ifndef WSAEWOULDBLOCK > #define WSAEWOULDBLOCK 10035L > #endif Something like that (possibly autoconf-magick'ed) and then if (status == EINPROGRESS || status == WSAEWOULDBLOCK ) or even if (status == EINPROGRESS || status == EWOULDBLOCK ) (WSAEWOULDBLOCK mapped to EWOULDBLOCK, as I've seen that error code on some unix platforms as well) would be my favourite, code-readability wise. gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany g...@greenie.muc.de fax: +49-89-35655025 g...@net.informatik.tu-muenchen.de
pgpNF7Z9ztcTX.pgp
Description: PGP signature