aboutsummaryrefslogtreecommitdiff
path: root/speexin~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-08-01 23:29:14 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:23:30 +0200
commit643db65912ac1b19cafc5e6a194828132029ba79 (patch)
tree60a26041fed52e63efa59cd0c2975fffa265fdfb /speexin~.c
parentac7266a0e930bd947d9f22af43d9c222574fe1bd (diff)
replaced NT and UNIX macros with _WIN32 and _MSC_VER where appropriate
svn path=/trunk/externals/unauthorized/; revision=15192
Diffstat (limited to 'speexin~.c')
-rw-r--r--speexin~.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/speexin~.c b/speexin~.c
index a2d9e82..188a36e 100644
--- a/speexin~.c
+++ b/speexin~.c
@@ -86,7 +86,7 @@ extern void sys_sockerror(char *s);
void speexin_closesocket(int fd)
{
-#ifdef UNIX
+#ifndef _WIN32
if ( close(fd) < 0 )
{
perror( "close" );
@@ -96,7 +96,7 @@ void speexin_closesocket(int fd)
post( "speexin~ : closed socket : %d", fd );
}
#endif
-#ifdef NT
+#ifdef _WIN32
closesocket(fd);
#endif
sys_rmpollfn(fd);
@@ -116,7 +116,7 @@ int setsocketoptions(int sockfd)
post("speexin~ : TCP_NODELAY set");
}
-#ifdef UNIX
+#ifdef _WIN32
sockopt = 1;
if (setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &sockopt, sizeof(int)) < 0)
{