18 |
|
#include <stdlib.h> |
19 |
|
#include <string.h> |
20 |
|
|
21 |
– |
#include "platform.h" |
21 |
|
#include "mat4.h" |
22 |
|
|
23 |
+ |
|
24 |
+ |
#ifndef NULL |
25 |
+ |
#define NULL 0 |
26 |
+ |
#endif |
27 |
+ |
|
28 |
|
/* regular transformation */ |
29 |
|
typedef struct { |
30 |
|
MAT4 xfm; /* transform matrix */ |
44 |
|
#endif |
45 |
|
#endif |
46 |
|
|
47 |
+ |
/* XXX include paths.h instead */ |
48 |
|
#ifndef F_OK /* mode bits for access(2) call */ |
49 |
|
#define R_OK 4 /* readable */ |
50 |
|
#define W_OK 2 /* writable */ |
115 |
|
#endif |
116 |
|
extern off_t lseek(); |
117 |
|
|
118 |
< |
#ifdef MSDOS |
118 |
> |
#ifdef _WIN32 |
119 |
|
#define NIX 1 |
120 |
|
#endif |
121 |
|
#ifdef AMIGA |
204 |
|
extern void decodedir(FVECT dv, int4 dc); |
205 |
|
extern double dir2diff(int4 dc1, int4 dc2); |
206 |
|
extern double fdir2diff(int4 dc1, FVECT v2); |
207 |
+ |
/* defined in lamp.c */ |
208 |
+ |
extern float * matchlamp(char *s); |
209 |
+ |
extern int loadlamps(char *file); |
210 |
+ |
extern void freelamps(void); |
211 |
|
/* miscellaneous */ |
212 |
|
extern void eputs(char *s); |
213 |
|
extern void wputs(char *s); |