| 14 |
|
#ifdef __cplusplus |
| 15 |
|
extern "C" { |
| 16 |
|
#endif |
| 17 |
– |
|
| 17 |
|
/* regular transformation */ |
| 18 |
|
typedef struct { |
| 19 |
|
MAT4 xfm; /* transform matrix */ |
| 44 |
|
/* table-based cosine approximation */ |
| 45 |
|
#define tsin(x) tcos((x)-(PI/2.)) |
| 46 |
|
#define ttan(x) (tsin(x)/tcos(x)) |
| 47 |
+ |
#endif |
| 48 |
+ |
|
| 49 |
+ |
/* VC 2015 has those defined (XXX possibly earlier?) */ |
| 50 |
+ |
#if ((defined(_WIN32) || defined(_WIN64)) \ |
| 51 |
+ |
&& (!defined(_MS_VER) || _MS_VER < 1900)) |
| 52 |
+ |
extern double erf(double x); |
| 53 |
+ |
extern double erfc(double x); |
| 54 |
|
#endif |
| 55 |
|
/* defined in xf.c */ |
| 56 |
|
extern int xf(XF *ret, int ac, char *av[]); |