7 |
|
* 4/23/86 |
8 |
|
*/ |
9 |
|
|
10 |
– |
#include "standard.h" |
11 |
– |
|
12 |
– |
#include "color.h" |
13 |
– |
|
10 |
|
#include <time.h> |
11 |
|
|
12 |
+ |
#include "standard.h" |
13 |
+ |
#include "platform.h" |
14 |
+ |
#include "color.h" |
15 |
|
#include "resolu.h" |
16 |
|
|
17 |
|
typedef unsigned short uint16; /* sizeof (uint16) must == 2 */ |
270 |
|
} |
271 |
|
|
272 |
|
if (reverse) { |
273 |
< |
#ifdef MSDOS |
274 |
< |
setmode(fileno(stdout), O_BINARY); |
273 |
> |
#ifdef _WIN32 |
274 |
> |
SET_FILE_BINARY(stdout); |
275 |
|
if (format != 'a' && format != 'i') |
276 |
< |
setmode(fileno(fin), O_BINARY); |
276 |
> |
SET_FILE_BINARY(fin); |
277 |
|
#endif |
278 |
|
/* get header */ |
279 |
|
if (header) { |
318 |
|
fputsresolu(&picres, stdout); /* always put resolution */ |
319 |
|
valtopix(); |
320 |
|
} else { |
321 |
< |
#ifdef MSDOS |
322 |
< |
setmode(fileno(fin), O_BINARY); |
321 |
> |
#ifdef _WIN32 |
322 |
> |
SET_FILE_BINARY(fin); |
323 |
|
if (format != 'a' && format != 'i') |
324 |
< |
setmode(fileno(stdout), O_BINARY); |
324 |
> |
SET_FILE_BINARY(stdout); |
325 |
|
#endif |
326 |
|
/* get header */ |
327 |
|
getheader(fin, checkhead, NULL); |