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.6 by schorsch, Mon Jun 30 19:58:37 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
19  
20 +  #include <windows.h>
21 +  #define sleep(s) Sleep(s*1000)
22 +
23    #define NON_POSIX
24  
25    #include <sys/types.h>
# Line 23 | Line 29 | extern "C" {
29    #define W_IFDIR _S_IFDIR
30  
31    #include <fcntl.h>  /* _O_BINARY, _O_TEXT */
26  #include <io.h>     /* _setmode() */
32    #include <stdlib.h> /* _fmode */
33    #define SET_DEFAULT_BINARY() _fmode = _O_BINARY
34    #define SET_FILE_BINARY(fp) _setmode(fileno(fp),_O_BINARY)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines