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); |
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); |
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 |
|
} |