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

Comparing ray/src/px/ttyimage.c (file contents):
Revision 2.3 by greg, Sat Feb 22 02:07:28 2003 UTC vs.
Revision 2.4 by schorsch, Thu Jun 5 19:29:34 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   */
9  
10   #include  <stdio.h>
11 #ifdef MSDOS
12 #include  <fcntl.h>
13 #endif
11   #include  <time.h>
12  
13 + #include  "platform.h"
14   #include  "color.h"
15   #include  "resolu.h"
16  
# Line 35 | Line 33 | char  **argv;
33                  fprintf(stderr, "%s: can't open file \"%s\"\n", argv[0], argv[1]);
34                  exit(1);
35          }
36 < #ifdef MSDOS
39 <        setmode(fileno(input), O_BINARY);
40 < #endif
36 >        SET_FILE_BINARY(input);
37                                  /* get picture dimensions */
38          if (checkheader(input, COLRFMT, NULL) < 0 ||
39                          fgetresolu(&xres, &yres, input) < 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines