ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/selcall.h
(Generate patch)

Comparing ray/src/common/selcall.h (file contents):
Revision 3.7 by schorsch, Thu Jun 26 00:58:09 2003 UTC vs.
Revision 3.9 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 8 | Line 8
8   extern "C" {
9   #endif
10  
11 < #include "copyright.h"
12 <
11 > #include <string.h>
12   #include <sys/types.h>
13   #ifdef _WIN32
14    /*#include <winsock2.h>*/
# Line 34 | Line 33 | extern "C" {
33   #define FD_SET(n, p)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
34   #define FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
35   #define FD_ISSET(n, p)  ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
37 #ifdef BSD
38 #define FD_ZERO(p)      bzero((char *)(p), sizeof(*(p)))
39 #else
36   #define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
41 #endif
37   #endif
38  
39  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines