2 |
|
/* |
3 |
|
* Miscellaneous definitions required by many routines. |
4 |
|
*/ |
5 |
– |
|
5 |
|
#ifndef _RAD_STANDARD_H_ |
6 |
|
#define _RAD_STANDARD_H_ |
7 |
+ |
#ifdef __cplusplus |
8 |
+ |
extern "C" { |
9 |
+ |
#endif |
10 |
|
|
11 |
|
#include "copyright.h" |
12 |
|
|
18 |
|
#include <stdlib.h> |
19 |
|
#include <string.h> |
20 |
|
|
19 |
– |
#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); |
214 |
|
extern void quit(int code); |
215 |
|
|
216 |
|
|
217 |
+ |
#ifdef __cplusplus |
218 |
+ |
} |
219 |
+ |
#endif |
220 |
|
#endif /* _RAD_STANDARD_H_ */ |
221 |
+ |
|