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.5 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 3.8 by greg, Fri Jun 27 06:53:22 2003 UTC

# Line 2 | Line 2
2   /*
3   * header file for select call compatibility
4   */
5 + #ifndef _RAD_SELCALL_H_
6 + #define _RAD_SELCALL_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
6 #include "copyright.h"
7
11   #include <sys/types.h>
12 < #include <sys/time.h>
12 > #ifdef _WIN32
13 >  /*#include <winsock2.h>*/
14 > #else
15 >  #include <sys/time.h>
16 > #endif
17   #ifdef INCL_SEL_H
18   #include <sys/select.h>
19   #endif
20  
21   #ifndef FD_SETSIZE
22 < #include <sys/param.h>
22 > #ifdef _WIN32
23 > #else
24 >  #include <sys/param.h>
25 > #endif
26   #define FD_SETSIZE      NOFILE          /* maximum # select file descriptors */
27   #endif
28   #ifndef FD_SET
# Line 28 | Line 38
38   #define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
39   #endif
40   #endif
41 +
42 +
43 + #ifdef __cplusplus
44 + }
45 + #endif
46 + #endif /* _RAD_SELCALL_H_ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines