1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
12 |
|
|
13 |
|
#include <stdio.h> |
14 |
|
|
15 |
+ |
#ifdef MSDOS |
16 |
+ |
#include <fcntl.h> |
17 |
+ |
#endif |
18 |
+ |
|
19 |
+ |
#include <math.h> |
20 |
+ |
|
21 |
|
#include "color.h" |
22 |
|
|
23 |
|
#include "resolu.h" |
24 |
|
|
25 |
< |
extern double atof(), pow(); |
25 |
> |
extern char *malloc(); |
26 |
|
|
27 |
|
double gamma = 2.0; /* gamma correction */ |
28 |
|
|
43 |
|
{ |
44 |
|
int reverse = 0; |
45 |
|
int i; |
46 |
< |
|
46 |
> |
#ifdef MSDOS |
47 |
> |
extern int _fmode; |
48 |
> |
_fmode = O_BINARY; |
49 |
> |
setmode(fileno(stdin), O_BINARY); |
50 |
> |
setmode(fileno(stdout), O_BINARY); |
51 |
> |
#endif |
52 |
|
progname = argv[0]; |
53 |
|
|
54 |
|
for (i = 1; i < argc; i++) |