winerrno.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. # include <errno.h>
  15. # include <winerror.h>
  16. /*These conflict with the MSVC errno.h definitions, but we don't need to use
  17. the original ones in any file that deals with sockets.
  18. We could map the WSA errors to the errno.h ones (most of which are only
  19. available on sufficiently new versions of MSVC), but they aren't ordered the
  20. same, and given how rarely we actually look at the values, I don't think
  21. it's worth a lookup table.*/
  22. # undef EWOULDBLOCK
  23. # undef EINPROGRESS
  24. # undef EALREADY
  25. # undef ENOTSOCK
  26. # undef EDESTADDRREQ
  27. # undef EMSGSIZE
  28. # undef EPROTOTYPE
  29. # undef ENOPROTOOPT
  30. # undef EPROTONOSUPPORT
  31. # undef EOPNOTSUPP
  32. # undef EAFNOSUPPORT
  33. # undef EADDRINUSE
  34. # undef EADDRNOTAVAIL
  35. # undef ENETDOWN
  36. # undef ENETUNREACH
  37. # undef ENETRESET
  38. # undef ECONNABORTED
  39. # undef ECONNRESET
  40. # undef ENOBUFS
  41. # undef EISCONN
  42. # undef ENOTCONN
  43. # undef ETIMEDOUT
  44. # undef ECONNREFUSED
  45. # undef ELOOP
  46. # undef ENAMETOOLONG
  47. # undef EHOSTUNREACH
  48. # undef ENOTEMPTY
  49. # define EWOULDBLOCK (WSAEWOULDBLOCK-WSABASEERR)
  50. # define EINPROGRESS (WSAEINPROGRESS-WSABASEERR)
  51. # define EALREADY (WSAEALREADY-WSABASEERR)
  52. # define ENOTSOCK (WSAENOTSOCK-WSABASEERR)
  53. # define EDESTADDRREQ (WSAEDESTADDRREQ-WSABASEERR)
  54. # define EMSGSIZE (WSAEMSGSIZE-WSABASEERR)
  55. # define EPROTOTYPE (WSAEPROTOTYPE-WSABASEERR)
  56. # define ENOPROTOOPT (WSAENOPROTOOPT-WSABASEERR)
  57. # define EPROTONOSUPPORT (WSAEPROTONOSUPPORT-WSABASEERR)
  58. # define ESOCKTNOSUPPORT (WSAESOCKTNOSUPPORT-WSABASEERR)
  59. # define EOPNOTSUPP (WSAEOPNOTSUPP-WSABASEERR)
  60. # define EPFNOSUPPORT (WSAEPFNOSUPPORT-WSABASEERR)
  61. # define EAFNOSUPPORT (WSAEAFNOSUPPORT-WSABASEERR)
  62. # define EADDRINUSE (WSAEADDRINUSE-WSABASEERR)
  63. # define EADDRNOTAVAIL (WSAEADDRNOTAVAIL-WSABASEERR)
  64. # define ENETDOWN (WSAENETDOWN-WSABASEERR)
  65. # define ENETUNREACH (WSAENETUNREACH-WSABASEERR)
  66. # define ENETRESET (WSAENETRESET-WSABASEERR)
  67. # define ECONNABORTED (WSAECONNABORTED-WSABASEERR)
  68. # define ECONNRESET (WSAECONNRESET-WSABASEERR)
  69. # define ENOBUFS (WSAENOBUFS-WSABASEERR)
  70. # define EISCONN (WSAEISCONN-WSABASEERR)
  71. # define ENOTCONN (WSAENOTCONN-WSABASEERR)
  72. # define ESHUTDOWN (WSAESHUTDOWN-WSABASEERR)
  73. # define ETOOMANYREFS (WSAETOOMANYREFS-WSABASEERR)
  74. # define ETIMEDOUT (WSAETIMEDOUT-WSABASEERR)
  75. # define ECONNREFUSED (WSAECONNREFUSED-WSABASEERR)
  76. # define ELOOP (WSAELOOP-WSABASEERR)
  77. # define ENAMETOOLONG (WSAENAMETOOLONG-WSABASEERR)
  78. # define EHOSTDOWN (WSAEHOSTDOWN-WSABASEERR)
  79. # define EHOSTUNREACH (WSAEHOSTUNREACH-WSABASEERR)
  80. # define ENOTEMPTY (WSAENOTEMPTY-WSABASEERR)
  81. # define EPROCLIM (WSAEPROCLIM-WSABASEERR)
  82. # define EUSERS (WSAEUSERS-WSABASEERR)
  83. # define EDQUOT (WSAEDQUOT-WSABASEERR)
  84. # define ESTALE (WSAESTALE-WSABASEERR)
  85. # define EREMOTE (WSAEREMOTE-WSABASEERR)
  86. #endif