~mordred/libmemcached/merge-vs-work

« back to all changes in this revision

Viewing changes to win32/mingw/errno.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 18:47:03 UTC
  • Revision ID: mordred@inaugust.com-20110213184703-usxdc2h4do3bnxhx
Build for Visual Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* LibMemcached
 
2
 * Copyright (C) 2010 Brian Aker, Trond Norbye
 
3
 * All rights reserved.
 
4
 *
 
5
 * Use and distribution licensed under the BSD license.  See
 
6
 * the COPYING file in the parent directory for full text.
 
7
 *
 
8
 * Summary: errno.h for windows
 
9
 *
 
10
 */
 
11
 
 
12
#ifndef WIN32_ERRNO_H
 
13
#define WIN32_ERRNO_H
 
14
 
 
15
#if TARGET_OS_WINDOWS && ! defined(__CYGWIN__)
 
16
 
 
17
 
 
18
/* define ENOMEM if it's not #defined (e.g., when using pure libc headers) */
 
19
#ifndef ENOMEM
 
20
# define ENOMEM   12
 
21
#endif   /* ENOMEM */
 
22
#ifndef ERANGE
 
23
# define ERANGE 34      /* Math result not representable.  */
 
24
#endif
 
25
 
 
26
# define EINPROGRESS WSAEINPROGRESS
 
27
# define EALREADY WSAEALREADY
 
28
# define EISCONN WSAEISCONN
 
29
# define ENOBUFS WSAENOBUFS
 
30
# define EAGAIN WSAEWOULDBLOCK
 
31
# define EINTR WSAEINTR
 
32
# define EPIPE WSAECONNRESET
 
33
# define EINVAL WSAEINVAL
 
34
# define ECONNREFUSED WSAECONNREFUSED
 
35
# define ENETUNREACH WSAENETUNREACH
 
36
# define ETIMEDOUT WSAETIMEDOUT
 
37
# define ECONNRESET WSAECONNRESET 
 
38
# define EADDRINUSE WSAEADDRINUSE
 
39
# define EOPNOTSUPP WSAEOPNOTSUPP
 
40
# define ENOPROTOOPT WSAENOPROTOOPT
 
41
# define EWOULDBLOCK     EAGAIN
 
42
# define ENOTSOCK        10038
 
43
# define EDESTADDRREQ    10039
 
44
# define EMSGSIZE        10040
 
45
# define EPROTOTYPE      10041
 
46
# define EPROTONOSUPPORT 10043
 
47
# define EAFNOSUPPORT    10047
 
48
# define EADDRNOTAVAIL   10049
 
49
# define ENETDOWN        10050
 
50
# define ENETRESET       10052
 
51
# define ECONNABORTED    10053
 
52
# define ENOTCONN        10057
 
53
# define ELOOP           10062
 
54
# define EHOSTUNREACH    10065
 
55
# define EDQUOT          10069
 
56
# define ESTALE          10070
 
57
#else
 
58
#include_next <errno.h>
 
59
#endif
 
60
 
 
61
#endif /* WIN32_ERRNO_H */