Update of /cvsroot/pure-data/externals/ggee/signal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24692/signal
Modified Files: sfwrite~.c streamin~.c streamout~.c Log Message: updated windows macro to automatically defined _WIN32 to smooth Windows building
Index: sfwrite~.c =================================================================== RCS file: /cvsroot/pure-data/externals/ggee/signal/sfwrite~.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sfwrite~.c 14 Nov 2005 21:59:09 -0000 1.4 --- sfwrite~.c 3 Jul 2007 11:04:57 -0000 1.5 *************** *** 10,14 **** #include <stdio.h> #include <string.h> ! #ifndef NT #include <unistd.h> #include <sys/mman.h> --- 10,14 ---- #include <stdio.h> #include <string.h> ! #ifndef _WIN32 #include <unistd.h> #include <sys/mman.h> *************** *** 20,24 ****
! #ifdef NT #define BINREADMODE "rb" #define OPENPARAMS O_WRONLY | O_CREAT | O_TRUNC --- 20,24 ----
! #ifdef _WIN32 #define BINREADMODE "rb" #define OPENPARAMS O_WRONLY | O_CREAT | O_TRUNC
Index: streamin~.c =================================================================== RCS file: /cvsroot/pure-data/externals/ggee/signal/streamin~.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** streamin~.c 15 Nov 2005 06:16:39 -0000 1.8 --- streamin~.c 3 Jul 2007 11:04:57 -0000 1.9 *************** *** 46,50 ****
! #ifdef NT extern int close(int); extern void sys_rmpollfn(int fd); --- 46,50 ----
! #ifdef _WIN32 extern int close(int); extern void sys_rmpollfn(int fd); *************** *** 69,73 **** close(fd); #endif ! #ifdef NT closesocket(fd); #endif --- 69,73 ---- close(fd); #endif ! #ifdef _WIN32 closesocket(fd); #endif *************** *** 148,152 **** ret = recv(x->x_socket, (char*) &x->frames[x->framein].tag,sizeof(t_tag),MSG_PEEK); if (ret != sizeof(t_tag)) { ! #ifdef NT sys_closesocket(x->x_socket); sys_rmpollfn(x->x_socket); --- 148,152 ---- ret = recv(x->x_socket, (char*) &x->frames[x->framein].tag,sizeof(t_tag),MSG_PEEK); if (ret != sizeof(t_tag)) { ! #ifdef _WIN32 sys_closesocket(x->x_socket); sys_rmpollfn(x->x_socket);
Index: streamout~.c =================================================================== RCS file: /cvsroot/pure-data/externals/ggee/signal/streamout~.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** streamout~.c 15 Nov 2005 06:16:39 -0000 1.5 --- streamout~.c 3 Jul 2007 11:04:57 -0000 1.6 *************** *** 42,46 **** close(fd); /* shutdown() ?? */ #endif ! #ifdef NT closesocket(fd); #endif --- 42,46 ---- close(fd); /* shutdown() ?? */ #endif ! #ifdef _WIN32 closesocket(fd); #endif