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

Comparing ray/src/rt/duphead.c (file contents):
Revision 2.4 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.7 by greg, Wed Oct 22 02:06:35 2003 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include "copyright.h"
11  
12 + #include  "platform.h"
13   #include  "standard.h"
14   #include  "paths.h"
15  
# Line 52 | Line 53 | dupheader()                    /* repeat header on standard output */
53          if (headfp == NULL) {
54                  if ((headfp = fopen(headfname, "r")) == NULL)
55                          error(SYSTEM, "error reopening header file");
56 < #ifdef MSDOS
56 <                setmode(fileno(headfp), O_BINARY);
57 < #endif
56 >                SET_FILE_BINARY(headfp);
57          } else if (fseek(headfp, 0L, 0) < 0)
58                  error(SYSTEM, "seek error on header file");
59          while ((c = getc(headfp)) != EOF)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines