11 |
|
#include <time.h> |
12 |
|
|
13 |
|
#include "platform.h" |
14 |
+ |
#include "rtio.h" |
15 |
|
#include "color.h" |
16 |
|
#include "resolu.h" |
17 |
|
|
104 |
|
if (read(fileno(stdin), inpbuf, 2) != 2 || inpbuf[0] != 'P') |
105 |
|
quiterr("input not a Poskanzer Pixmap"); |
106 |
|
ptype = inpbuf[1]; |
107 |
< |
#ifdef _WIN32 |
107 |
> |
#if defined(_WIN32) || defined(_WIN64) |
108 |
|
if (ptype > 4) |
109 |
|
SET_FILE_BINARY(stdin); |
110 |
|
SET_FILE_BINARY(stdout); |
154 |
|
quiterr("unsupported Pixmap type"); |
155 |
|
} |
156 |
|
} else { |
157 |
< |
#ifdef _WIN32 |
157 |
> |
#if defined(_WIN32) || defined(_WIN64) |
158 |
|
SET_FILE_BINARY(stdin); |
159 |
|
if (binflag) |
160 |
|
SET_FILE_BINARY(stdout); |