summaryrefslogtreecommitdiff
path: root/thirdparty/opus/winerrno.h
blob: 32a90b4ee1df96f42a6b3ee81c9558d2048f15f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/********************************************************************
 *                                                                  *
 * THIS FILE IS PART OF THE libopusfile SOFTWARE CODEC SOURCE CODE. *
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
 *                                                                  *
 * THE libopusfile SOURCE CODE IS (C) COPYRIGHT 2012                *
 * by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
 *                                                                  *
 ********************************************************************/
#if !defined(_opusfile_winerrno_h)
# define _opusfile_winerrno_h (1)

# include <errno.h>
# include <winerror.h>

/*These conflict with the MSVC errno.h definitions, but we don't need to use
   the original ones in any file that deals with sockets.
  We could map the WSA errors to the errno.h ones (most of which are only
   available on sufficiently new versions of MSVC), but they aren't ordered the
   same, and given how rarely we actually look at the values, I don't think
   it's worth a lookup table.*/
# undef EWOULDBLOCK
# undef EINPROGRESS
# undef EALREADY
# undef ENOTSOCK
# undef EDESTADDRREQ
# undef EMSGSIZE
# undef EPROTOTYPE
# undef ENOPROTOOPT
# undef EPROTONOSUPPORT
# undef EOPNOTSUPP
# undef EAFNOSUPPORT
# undef EADDRINUSE
# undef EADDRNOTAVAIL
# undef ENETDOWN
# undef ENETUNREACH
# undef ENETRESET
# undef ECONNABORTED
# undef ECONNRESET
# undef ENOBUFS
# undef EISCONN
# undef ENOTCONN
# undef ETIMEDOUT
# undef ECONNREFUSED
# undef ELOOP
# undef ENAMETOOLONG
# undef EHOSTUNREACH
# undef ENOTEMPTY

# define EWOULDBLOCK     (WSAEWOULDBLOCK-WSABASEERR)
# define EINPROGRESS     (WSAEINPROGRESS-WSABASEERR)
# define EALREADY        (WSAEALREADY-WSABASEERR)
# define ENOTSOCK        (WSAENOTSOCK-WSABASEERR)
# define EDESTADDRREQ    (WSAEDESTADDRREQ-WSABASEERR)
# define EMSGSIZE        (WSAEMSGSIZE-WSABASEERR)
# define EPROTOTYPE      (WSAEPROTOTYPE-WSABASEERR)
# define ENOPROTOOPT     (WSAENOPROTOOPT-WSABASEERR)
# define EPROTONOSUPPORT (WSAEPROTONOSUPPORT-WSABASEERR)
# define ESOCKTNOSUPPORT (WSAESOCKTNOSUPPORT-WSABASEERR)
# define EOPNOTSUPP      (WSAEOPNOTSUPP-WSABASEERR)
# define EPFNOSUPPORT    (WSAEPFNOSUPPORT-WSABASEERR)
# define EAFNOSUPPORT    (WSAEAFNOSUPPORT-WSABASEERR)
# define EADDRINUSE      (WSAEADDRINUSE-WSABASEERR)
# define EADDRNOTAVAIL   (WSAEADDRNOTAVAIL-WSABASEERR)
# define ENETDOWN        (WSAENETDOWN-WSABASEERR)
# define ENETUNREACH     (WSAENETUNREACH-WSABASEERR)
# define ENETRESET       (WSAENETRESET-WSABASEERR)
# define ECONNABORTED    (WSAECONNABORTED-WSABASEERR)
# define ECONNRESET      (WSAECONNRESET-WSABASEERR)
# define ENOBUFS         (WSAENOBUFS-WSABASEERR)
# define EISCONN         (WSAEISCONN-WSABASEERR)
# define ENOTCONN        (WSAENOTCONN-WSABASEERR)
# define ESHUTDOWN       (WSAESHUTDOWN-WSABASEERR)
# define ETOOMANYREFS    (WSAETOOMANYREFS-WSABASEERR)
# define ETIMEDOUT       (WSAETIMEDOUT-WSABASEERR)
# define ECONNREFUSED    (WSAECONNREFUSED-WSABASEERR)
# define ELOOP           (WSAELOOP-WSABASEERR)
# define ENAMETOOLONG    (WSAENAMETOOLONG-WSABASEERR)
# define EHOSTDOWN       (WSAEHOSTDOWN-WSABASEERR)
# define EHOSTUNREACH    (WSAEHOSTUNREACH-WSABASEERR)
# define ENOTEMPTY       (WSAENOTEMPTY-WSABASEERR)
# define EPROCLIM        (WSAEPROCLIM-WSABASEERR)
# define EUSERS          (WSAEUSERS-WSABASEERR)
# define EDQUOT          (WSAEDQUOT-WSABASEERR)
# define ESTALE          (WSAESTALE-WSABASEERR)
# define EREMOTE         (WSAEREMOTE-WSABASEERR)

#endif