/
Genesis-1.0p36-DEV/
Genesis-1.0p36-DEV/bin/
Genesis-1.0p36-DEV/doc/
Genesis-1.0p36-DEV/etc/
Genesis-1.0p36-DEV/src/data/
/*
// Full copyright information is available in the file ../doc/CREDITS
//
// because Win32 defines errors just slightly different, and the same errors
// are WSA errors if used in regard to sockets, in win32
*/

#ifdef __Win32__

#include <errno.h>
#include <winsock.h>

#define     ERR_INTR         WSAEINTR
#define     ERR_NOMEM        ENOMEM
#define     ERR_RANGE        ERANGE
#define     ERR_INPROGRESS   WSAEINPROGRESS
#define     ERR_NETUNREACH   WSAENETUNREACH
#define     ERR_TIMEDOUT     WSAETIMEDOUT
#define     ERR_CONNREFUSED  WSAECONNREFUSED

#define GETERR()      GetLastError()
#define SETERR(_err_) SetLastError(_err_)

#else

#include <errno.h>

#define     ERR_INTR         EINTR
#define     ERR_NOMEM        ENOMEM
#define     ERR_RANGE        ERANGE
#define     ERR_INPROGRESS   EINPROGRESS
#define     ERR_NETUNREACH   ENETUNREACH
#define     ERR_TIMEDOUT     ETIMEDOUT
#define     ERR_CONNREFUSED  ECONNREFUSED

#define GETERR()      errno
#define SETERR(_err_) errno = _err_

#endif