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.5 by schorsch, Thu Jun 5 19:29:34 2003 UTC

# Line 52 | Line 52 | dupheader()                    /* repeat header on standard output */
52          if (headfp == NULL) {
53                  if ((headfp = fopen(headfname, "r")) == NULL)
54                          error(SYSTEM, "error reopening header file");
55 < #ifdef MSDOS
56 <                setmode(fileno(headfp), O_BINARY);
57 < #endif
55 >                SET_FILE_BINARY(headfp);
56          } else if (fseek(headfp, 0L, 0) < 0)
57                  error(SYSTEM, "seek error on header file");
58          while ((c = getc(headfp)) != EOF)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines