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

Comparing ray/src/px/ra_ppm.c (file contents):
Revision 2.13 by greg, Fri Jan 6 06:40:53 2006 UTC vs.
Revision 2.15 by schorsch, Sun Mar 6 01:13:17 2016 UTC

# Line 103 | Line 103 | main(
103                  if (read(fileno(stdin), inpbuf, 2) != 2 || inpbuf[0] != 'P')
104                          quiterr("input not a Poskanzer Pixmap");
105                  ptype = inpbuf[1];
106 < #ifdef _WIN32
106 > #if defined(_WIN32) || defined(_WIN64)
107                  if (ptype > 4)
108                          SET_FILE_BINARY(stdin);
109                  SET_FILE_BINARY(stdout);
# Line 153 | Line 153 | main(
153                                  quiterr("unsupported Pixmap type");
154                          }
155          } else {
156 < #ifdef _WIN32
156 > #if defined(_WIN32) || defined(_WIN64)
157                  SET_FILE_BINARY(stdin);
158                  if (binflag)
159                          SET_FILE_BINARY(stdout);
# Line 587 | Line 587 | getby2(                        /* return 2-byte quantity from fp */
587  
588          upperb = getc(fp);
589          lowerb = getc(fp);
590 <        if (upperb == EOF)
590 >        if (lowerb == EOF)
591                  return(EOF);
592          return(upperb<<8 | lowerb);
593   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines