mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
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
This commit is contained in:
parent
9818d67ec2
commit
5fcbf04f5b
14 changed files with 41 additions and 65 deletions
23
polyp/winsock.h
Normal file
23
polyp/winsock.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue