ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rpmain.c
(Generate patch)

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.2 by greg, Tue Feb 25 02:47:23 2003 UTC vs.
Revision 2.3 by schorsch, Thu Jun 5 19:29:34 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7  
8   #include "copyright.h"
9  
10 < #include  "ray.h"
10 > #include  <sys/types.h>
11 > #include  <signal.h>
12  
13 + #include  "platform.h"
14 + #include  "ray.h"
15   #include  "source.h"
13
16   #include  "ambient.h"
15
17   #include  "random.h"
17
18   #include  "paths.h"
19
20 #include  <sys/types.h>
21
22 #include  <signal.h>
23
19   #include  "view.h"
20  
26 #include  "paths.h"
21                                          /* persistent processes define */
22   #ifdef  F_SETLKW
23   #define  PERSIST        1               /* normal persist */
# Line 278 | Line 272 | char  *argv[];
272   #endif
273          if (outfile != NULL)
274                  openheader();
275 < #ifdef  MSDOS
276 <        setmode(fileno(stdout), O_BINARY);
275 > #ifdef  _WIN32
276 >        SET_FILE_BINARY(stdout);
277          if (octname == NULL)
278 <                setmode(fileno(stdin), O_BINARY);
278 >                SET_FILE_BINARY(stdin);
279   #endif
280          readoct(octname, loadflags, &thescene, NULL);
281          nsceneobjs = nobjects;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines