aboutsummaryrefslogtreecommitdiff
path: root/net/udpreceive~.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-21 20:37:09 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-21 20:37:09 +0000
commit9fdee08447854f52b81017e7659d86fd94311e8e (patch)
tree02c78514fb779ee193d8d5c38285eb2904d678fe /net/udpreceive~.c
parentb260314ec33edf6e7af5d9981b8cc8b0c8a32c6e (diff)
use auto-macro _WIN32 instead of Pd-defined macro UNIX, this means the build system doesn't need to set any macros to work properly
svn path=/trunk/externals/mrpeach/; revision=15636
Diffstat (limited to 'net/udpreceive~.c')
-rw-r--r--net/udpreceive~.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/udpreceive~.c b/net/udpreceive~.c
index 75b5996..86a7f08 100644
--- a/net/udpreceive~.c
+++ b/net/udpreceive~.c
@@ -37,7 +37,7 @@
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
-#if defined(UNIX) || defined(unix)
+#ifndef _WIN32
#include <sys/socket.h>
#include <errno.h>
#include <netinet/in.h>
@@ -67,7 +67,7 @@
#define DEFAULT_NETWORK_POLLTIME 1 /* interval in ms for polling for input data (Max/MSP only) */
#define DEFAULT_QUEUE_LENGTH 3 /* min. number of buffers that can be used reliably on your hardware */
-#if defined(UNIX) || defined(unix)
+#ifndef _WIN32
#define CLOSESOCKET(fd) close(fd)
#endif
#ifdef _WIN32
@@ -865,7 +865,7 @@ static int udpreceive_tilde_sockerror(char *s)
#ifdef _WIN32
if (err == WSAEWOULDBLOCK)
#endif
-#if defined(UNIX) || defined(unix)
+#ifndef _WIN32
if (err == EAGAIN)
#endif
{