From 0f65d3be9d874251c106d8bab3c43b0439ed5526 Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 1 Feb 2009 13:42:27 +0000 Subject: Convert HAVE_WINSOCK2_H into a 0/1 definition. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28437 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/udp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'stream/udp.c') diff --git a/stream/udp.c b/stream/udp.c index 86fdc1941d..3731859655 100644 --- a/stream/udp.c +++ b/stream/udp.c @@ -31,7 +31,7 @@ #include #include -#ifndef HAVE_WINSOCK2_H +#if !HAVE_WINSOCK2_H #include #include #include @@ -74,7 +74,7 @@ udp_open_socket (URL_t *url) if (isalpha (url->hostname[0])) { -#ifndef HAVE_WINSOCK2_H +#if !HAVE_WINSOCK2_H hp = (struct hostent *) gethostbyname (url->hostname); if (!hp) { @@ -91,7 +91,7 @@ udp_open_socket (URL_t *url) } else { -#ifndef HAVE_WINSOCK2_H +#if !HAVE_WINSOCK2_H #if HAVE_INET_ATON inet_aton (url->hostname, &server_address.sin_addr); #else @@ -110,7 +110,7 @@ udp_open_socket (URL_t *url) if (bind (socket_server_fd, (struct sockaddr *) &server_address, sizeof (server_address)) == -1) { -#ifndef HAVE_WINSOCK2_H +#if !HAVE_WINSOCK2_H if (errno != EINPROGRESS) #else if (WSAGetLastError () != WSAEINPROGRESS) @@ -122,7 +122,7 @@ udp_open_socket (URL_t *url) } } -#ifdef HAVE_WINSOCK2_H +#if HAVE_WINSOCK2_H if (isalpha (url->hostname[0])) { hp = (struct hostent *) gethostbyname (url->hostname); -- cgit v1.2.3