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

Comparing ray/src/common/rtprocess.h (file contents):
Revision 3.21 by greg, Mon Jan 18 03:55:33 2021 UTC vs.
Revision 3.23 by greg, Wed Apr 7 01:15:53 2021 UTC

# Line 8 | Line 8
8   #ifndef _RAD_PROCESS_H_
9   #define _RAD_PROCESS_H_
10  
11 < #include  <errno.h>
12 < #include <stdio.h>
11 > #include <errno.h>
12 > #include "paths.h"
13   #if defined(_WIN32) || defined(_WIN64)
14    #include <windows.h> /* DWORD etc. */
15    typedef DWORD RT_PID;
# Line 17 | Line 17
17    #define getpid _getpid
18    #define execv _execv
19    #define execvp _execvp
20 +  #ifdef _MSC_VER
21 +    #include <BaseTsd.h>
22 +    typedef SSIZE_T ssize_t;
23 +  #endif
24   #else
21  #include <sys/param.h>
25    typedef pid_t RT_PID;
26   #endif
24 #include <sys/types.h>
27  
26 #include "paths.h"
28  
29   #ifdef __cplusplus
30   extern "C" {
# Line 53 | Line 54 | extern "C" {
54     attached to the standard output of the child, and subsequent writes
55     to that descriptor in the parent send data to the standard input
56     of the child. The returned r descriptor is set to -1, since
57 <   there is no output to read from any longer in the child.  The
57 >   there is no longer any output to read from the child.  The
58     default w descriptor of 1 will cause the child to act as a filter
59     on the output of the parent.  Make sure to call fflush(stdout) first
60     if any data was buffered.  It is illegal to set both PF_FILT_INP and

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines