1 /******************************************************************** 2 * * 3 * THIS FILE IS PART OF THE libopusfile SOFTWARE CODEC SOURCE CODE. * 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * 5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * 6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * 7 * * 8 * THE libopusfile SOURCE CODE IS (C) COPYRIGHT 2012 * 9 * by the Xiph.Org Foundation and contributors http://www.xiph.org/ * 10 * * 11 ********************************************************************/ 12 #if !defined(_opusfile_winerrno_h) 13 # define _opusfile_winerrno_h (1) 14 15 # include <errno.h> 16 # include <winerror.h> 17 18 /*These conflict with the MSVC errno.h definitions, but we don't need to use 19 the original ones in any file that deals with sockets. 20 We could map the WSA errors to the errno.h ones (most of which are only 21 available on sufficiently new versions of MSVC), but they aren't ordered the 22 same, and given how rarely we actually look at the values, I don't think 23 it's worth a lookup table.*/ 24 # undef EWOULDBLOCK 25 # undef EINPROGRESS 26 # undef EALREADY 27 # undef ENOTSOCK 28 # undef EDESTADDRREQ 29 # undef EMSGSIZE 30 # undef EPROTOTYPE 31 # undef ENOPROTOOPT 32 # undef EPROTONOSUPPORT 33 # undef EOPNOTSUPP 34 # undef EAFNOSUPPORT 35 # undef EADDRINUSE 36 # undef EADDRNOTAVAIL 37 # undef ENETDOWN 38 # undef ENETUNREACH 39 # undef ENETRESET 40 # undef ECONNABORTED 41 # undef ECONNRESET 42 # undef ENOBUFS 43 # undef EISCONN 44 # undef ENOTCONN 45 # undef ETIMEDOUT 46 # undef ECONNREFUSED 47 # undef ELOOP 48 # undef ENAMETOOLONG 49 # undef EHOSTUNREACH 50 # undef ENOTEMPTY 51 52 # define EWOULDBLOCK (WSAEWOULDBLOCK-WSABASEERR) 53 # define EINPROGRESS (WSAEINPROGRESS-WSABASEERR) 54 # define EALREADY (WSAEALREADY-WSABASEERR) 55 # define ENOTSOCK (WSAENOTSOCK-WSABASEERR) 56 # define EDESTADDRREQ (WSAEDESTADDRREQ-WSABASEERR) 57 # define EMSGSIZE (WSAEMSGSIZE-WSABASEERR) 58 # define EPROTOTYPE (WSAEPROTOTYPE-WSABASEERR) 59 # define ENOPROTOOPT (WSAENOPROTOOPT-WSABASEERR) 60 # define EPROTONOSUPPORT (WSAEPROTONOSUPPORT-WSABASEERR) 61 # define ESOCKTNOSUPPORT (WSAESOCKTNOSUPPORT-WSABASEERR) 62 # define EOPNOTSUPP (WSAEOPNOTSUPP-WSABASEERR) 63 # define EPFNOSUPPORT (WSAEPFNOSUPPORT-WSABASEERR) 64 # define EAFNOSUPPORT (WSAEAFNOSUPPORT-WSABASEERR) 65 # define EADDRINUSE (WSAEADDRINUSE-WSABASEERR) 66 # define EADDRNOTAVAIL (WSAEADDRNOTAVAIL-WSABASEERR) 67 # define ENETDOWN (WSAENETDOWN-WSABASEERR) 68 # define ENETUNREACH (WSAENETUNREACH-WSABASEERR) 69 # define ENETRESET (WSAENETRESET-WSABASEERR) 70 # define ECONNABORTED (WSAECONNABORTED-WSABASEERR) 71 # define ECONNRESET (WSAECONNRESET-WSABASEERR) 72 # define ENOBUFS (WSAENOBUFS-WSABASEERR) 73 # define EISCONN (WSAEISCONN-WSABASEERR) 74 # define ENOTCONN (WSAENOTCONN-WSABASEERR) 75 # define ESHUTDOWN (WSAESHUTDOWN-WSABASEERR) 76 # define ETOOMANYREFS (WSAETOOMANYREFS-WSABASEERR) 77 # define ETIMEDOUT (WSAETIMEDOUT-WSABASEERR) 78 # define ECONNREFUSED (WSAECONNREFUSED-WSABASEERR) 79 # define ELOOP (WSAELOOP-WSABASEERR) 80 # define ENAMETOOLONG (WSAENAMETOOLONG-WSABASEERR) 81 # define EHOSTDOWN (WSAEHOSTDOWN-WSABASEERR) 82 # define EHOSTUNREACH (WSAEHOSTUNREACH-WSABASEERR) 83 # define ENOTEMPTY (WSAENOTEMPTY-WSABASEERR) 84 # define EPROCLIM (WSAEPROCLIM-WSABASEERR) 85 # define EUSERS (WSAEUSERS-WSABASEERR) 86 # define EDQUOT (WSAEDQUOT-WSABASEERR) 87 # define ESTALE (WSAESTALE-WSABASEERR) 88 # define EREMOTE (WSAEREMOTE-WSABASEERR) 89 90 #endif 91