summaryrefslogtreecommitdiffstats
path: root/stream/librtsp/rtsp_rtp.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-01 13:42:27 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-01 13:42:27 +0000
commit0f65d3be9d874251c106d8bab3c43b0439ed5526 (patch)
treefefdee42e83c5ff220f649c12dcaabff22301fff /stream/librtsp/rtsp_rtp.c
parent12b79487739ffedd9a74940feebe9d4ef11079dc (diff)
downloadmpv-0f65d3be9d874251c106d8bab3c43b0439ed5526.tar.bz2
mpv-0f65d3be9d874251c106d8bab3c43b0439ed5526.tar.xz
Convert HAVE_WINSOCK2_H into a 0/1 definition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28437 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/librtsp/rtsp_rtp.c')
-rw-r--r--stream/librtsp/rtsp_rtp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stream/librtsp/rtsp_rtp.c b/stream/librtsp/rtsp_rtp.c
index 7dc8f6d32c..0d84480a6b 100644
--- a/stream/librtsp/rtsp_rtp.c
+++ b/stream/librtsp/rtsp_rtp.c
@@ -28,7 +28,7 @@
#include "config.h"
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
@@ -251,7 +251,7 @@ rtcp_connect (int client_port, int server_port, const char* server_hostname)
if (bind (s, (struct sockaddr *) &sin, sizeof (sin)))
{
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
if (errno != EINPROGRESS)
#else
if (WSAGetLastError() != WSAEINPROGRESS)
@@ -297,7 +297,7 @@ rtp_connect (char *hostname, int port)
if (!hostname || !strcmp (hostname, "0.0.0.0"))
sin.sin_addr.s_addr = htonl (INADDR_ANY);
else
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
#if HAVE_INET_ATON
inet_aton (hostname, &sin.sin_addr);
#else
@@ -332,7 +332,7 @@ rtp_connect (char *hostname, int port)
/* datagram socket */
if (bind (s, (struct sockaddr *) &sin, sizeof (sin)))
{
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
if (errno != EINPROGRESS)
#else
if (WSAGetLastError() != WSAEINPROGRESS)
@@ -386,7 +386,7 @@ is_multicast_address (char *addr)
sin.sin_family = AF_INET;
-#ifndef HAVE_WINSOCK2_H
+#if !HAVE_WINSOCK2_H
#if HAVE_INET_ATON
inet_aton (addr, &sin.sin_addr);
#else