7 |
|
* |
8 |
|
* The Rmakefile entry should look something like this: |
9 |
|
* ra_skel: ra_skel.o |
10 |
< |
* cc $(CFLAGS) -o ra_skel ra_skel.o -lrt -lm |
10 |
> |
* cc $(CFLAGS) -o ra_skel ra_skel.o -lrtrad -lm |
11 |
|
* ra_skel.o: ../common/color.h ../common/resolu.h |
12 |
|
* |
13 |
|
* If you like to do things the hard way, you can link directly |
14 |
|
* to the object files "color.o colrops.o resolu.o header.o" in |
15 |
< |
* the common subdirectory instead of using the -lrt library. |
15 |
> |
* the common subdirectory instead of using the -lrtrad library. |
16 |
|
*/ |
17 |
|
|
18 |
|
#include <stdio.h> |
19 |
|
#include <math.h> |
20 |
– |
#ifdef MSDOS |
21 |
– |
#include <fcntl.h> |
22 |
– |
#endif |
20 |
|
#include <time.h> |
21 |
+ |
|
22 |
+ |
#include "platform.h" |
23 |
|
#include "color.h" |
24 |
|
#include "resolu.h" |
25 |
|
|
73 |
|
progname, argv[i+1]); |
74 |
|
exit(1); |
75 |
|
} |
76 |
< |
#ifdef MSDOS |
77 |
< |
setmode(fileno(stdin), O_BINARY); |
79 |
< |
setmode(fileno(stdout), O_BINARY); |
80 |
< |
#endif |
76 |
> |
SET_FILE_BINARY(stdin); |
77 |
> |
SET_FILE_BINARY(stdout); |
78 |
|
setcolrgam(gamcor); /* set up gamma correction */ |
79 |
|
if (reverse) { |
80 |
|
/* get their image resolution */ |