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

Comparing ray/src/common/platform.h (file contents):
Revision 3.5 by schorsch, Mon Jun 30 14:59:11 2003 UTC vs.
Revision 3.7 by schorsch, Thu Jul 3 22:41:44 2003 UTC

# Line 10 | Line 10 | extern "C" {
10  
11   #ifdef _WIN32
12  
13 +  #include <io.h>     /* _setmode() and stuff from unistd.h */
14 +  typedef long off_t;
15 +
16    #include <stdio.h>
17    #define popen _popen
18    #define pclose _pclose
16  #include <fcntl.h>  /* _O_BINARY, _O_TEXT */
17  #include <io.h>     /* _setmode() */
18  #include <stdlib.h> /* _fmode */
19  
20 +  #include <windows.h>
21 +  #define sleep(s) Sleep(s*1000)
22 +
23    #define NON_POSIX
21  #define RHAS_ACCESS
24  
25 +  #include <sys/types.h>
26 +  #include <sys/stat.h>
27 +  #define RHAS_STAT
28 +  #define S_IFREG _S_IFREG
29 +  #define W_IFDIR _S_IFDIR
30 +
31 +  #include <fcntl.h>  /* _O_BINARY, _O_TEXT */
32 +  #include <stdlib.h> /* _fmode */
33    #define SET_DEFAULT_BINARY() _fmode = _O_BINARY
34    #define SET_FILE_BINARY(fp) _setmode(fileno(fp),_O_BINARY)
35    #define SET_FD_BINARY(fd) _setmode(fd,_O_BINARY)
# Line 31 | Line 41 | extern "C" {
41    #else
42      /* assumedly posix systems */
43      #define RHAS_GETPWNAM
44 <    #define RHAS_ACCESS
44 >    #define RHAS_STAT
45      #define RHAS_FORK_EXEC
46    #endif
47  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines