diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-09 16:50:39 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-09 16:50:39 +0000 |
commit | 5fcbf04f5b95cccc61b2986a6582fa475e4d9c8b (patch) | |
tree | 28c2020661b53c47e8a490199b0f115acd881f05 /polyp/winsock.h | |
parent | 9818d67ec27bbc39feaf4c1a1f3d35a029484cc9 (diff) |
Condense winsock includes and defines into one header.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@428 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/winsock.h')
-rw-r--r-- | polyp/winsock.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/polyp/winsock.h b/polyp/winsock.h new file mode 100644 index 00000000..60fac87d --- /dev/null +++ b/polyp/winsock.h @@ -0,0 +1,23 @@ +#ifndef foowinsockhfoo +#define foowinsockhfoo + +#ifdef HAVE_WINSOCK2_H +#include <winsock2.h> + +#define EBADF WSAEBADF +#define ESHUTDOWN WSAESHUTDOWN +#define ECONNRESET WSAECONNRESET +#define ECONNABORTED WSAECONNABORTED +#define ENETRESET WSAENETRESET +#define EINPROGRESS WSAEINPROGRESS +#define ETIMEDOUT WSAETIMEDOUT +#define ECONNREFUSED WSAECONNREFUSED +#define EHOSTUNREACH WSAEHOSTUNREACH + +#endif + +#ifdef HAVE_WS2TCPIP_H +#include <ws2tcpip.h> +#endif + +#endif |