mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-27 07:00:01 -05:00
https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_ntop#requirements Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/546>
25 lines
575 B
C
25 lines
575 B
C
#ifndef fooarpa_inethfoo
|
|
#define fooarpa_inethfoo
|
|
|
|
#if defined(HAVE_ARPA_INET_H)
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#elif defined(OS_IS_WIN32)
|
|
|
|
/* On Windows winsock2.h (here included via pulsecore/socket.h) provides most of the functionality of arpa/inet.h, except for
|
|
* the inet_ntop and inet_pton functions, which are implemented here on versions earlier than Vista. */
|
|
|
|
#include <pulsecore/socket.h>
|
|
|
|
#if (_WIN32_WINNT < 0x0600)
|
|
|
|
const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
|
|
|
|
int inet_pton(int af, const char *src, void *dst);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|