diff options
Diffstat (limited to 'signal')
-rwxr-xr-x | signal/sfwrite~.c | 4 | ||||
-rwxr-xr-x | signal/streamin~.c | 6 | ||||
-rwxr-xr-x | signal/streamout~.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/signal/sfwrite~.c b/signal/sfwrite~.c index 1b5ed05..dfbdbec 100755 --- a/signal/sfwrite~.c +++ b/signal/sfwrite~.c @@ -9,7 +9,7 @@ #include <stdio.h>
#include <string.h>
-#ifndef NT
+#ifndef _WIN32
#include <unistd.h>
#include <sys/mman.h>
#else
@@ -19,7 +19,7 @@ #include <sys/stat.h>
-#ifdef NT
+#ifdef _WIN32
#define BINREADMODE "rb"
#define OPENPARAMS O_WRONLY | O_CREAT | O_TRUNC
#else
diff --git a/signal/streamin~.c b/signal/streamin~.c index 87c577c..39446c9 100755 --- a/signal/streamin~.c +++ b/signal/streamin~.c @@ -45,7 +45,7 @@ */
-#ifdef NT
+#ifdef _WIN32
extern int close(int);
extern void sys_rmpollfn(int fd);
extern sys_addpollfn(int fd, void* fn, void *ptr);
@@ -68,7 +68,7 @@ static void sys_closesocket(int fd) #ifdef UNIX
close(fd);
#endif
-#ifdef NT
+#ifdef _WIN32
closesocket(fd);
#endif
}
@@ -147,7 +147,7 @@ static void streamin_datapoll(t_streamin *x) if (x->nbytes == 0) { /* get the new tag */
ret = recv(x->x_socket, (char*) &x->frames[x->framein].tag,sizeof(t_tag),MSG_PEEK);
if (ret != sizeof(t_tag)) {
-#ifdef NT
+#ifdef _WIN32
sys_closesocket(x->x_socket);
sys_rmpollfn(x->x_socket);
x->x_socket = -1;
diff --git a/signal/streamout~.c b/signal/streamout~.c index a9c9d96..c23680e 100755 --- a/signal/streamout~.c +++ b/signal/streamout~.c @@ -41,7 +41,7 @@ static void sys_closesocket(int fd) #ifdef UNIX
close(fd); /* shutdown() ?? */
#endif
-#ifdef NT
+#ifdef _WIN32
closesocket(fd);
#endif
}
|