Update of /cvsroot/pure-data/externals/pdogg/oggcast~ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23207/oggcast~
Modified Files: oggcast~.c Log Message: fixes for MinGW
Index: oggcast~.c =================================================================== RCS file: /cvsroot/pure-data/externals/pdogg/oggcast~/oggcast~.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** oggcast~.c 27 Nov 2005 07:11:07 -0000 1.8 --- oggcast~.c 12 Dec 2005 06:39:05 -0000 1.9 *************** *** 39,43 **** #include <fcntl.h> #include <pthread.h> ! #ifdef UNIX #include <sys/socket.h> #include <netinet/in.h> --- 39,47 ---- #include <fcntl.h> #include <pthread.h> ! #ifdef WIN32 ! #include <io.h> /* for 'write' in pute-function only */ ! #include <winsock.h> ! #include <winbase.h> ! #else #include <sys/socket.h> #include <netinet/in.h> *************** *** 48,69 **** #include <unistd.h> #define SOCKET_ERROR -1 - #else - #include <io.h> /* for 'write' in pute-function only */ - #include <winsock.h> - #include <winbase.h> #endif
! #ifdef NT #pragma warning( disable : 4244 ) #pragma warning( disable : 4305 ) #endif
! #ifdef UNIX ! #define sys_closesocket close ! #define pdogg_strdup(s) strdup(s) ! #endif ! #ifdef NT #define sys_closesocket closesocket #define pdogg_strdup(s) _strdup(s) #endif
--- 52,68 ---- #include <unistd.h> #define SOCKET_ERROR -1 #endif
! #ifdef _MSC_VER #pragma warning( disable : 4244 ) #pragma warning( disable : 4305 ) #endif
! #ifdef WIN32 #define sys_closesocket closesocket #define pdogg_strdup(s) _strdup(s) + #else + #define sys_closesocket close + #define pdogg_strdup(s) strdup(s) #endif