diff options
Diffstat (limited to 'mathlib.c')
-rw-r--r-- | mathlib.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Mathematics library to LUA | 3 | ** Mathematics library to LUA |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_mathlib="$Id: mathlib.c,v 1.8 1995/01/04 18:49:54 roberto Exp $"; | 6 | char *rcs_mathlib="$Id: mathlib.c,v 1.9 1995/02/06 19:36:43 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <stdio.h> /* NULL */ | 8 | #include <stdio.h> /* NULL */ |
9 | #include <math.h> | 9 | #include <math.h> |
@@ -11,7 +11,9 @@ char *rcs_mathlib="$Id: mathlib.c,v 1.8 1995/01/04 18:49:54 roberto Exp $"; | |||
11 | #include "lualib.h" | 11 | #include "lualib.h" |
12 | #include "lua.h" | 12 | #include "lua.h" |
13 | 13 | ||
14 | #ifndef PI | ||
14 | #define PI 3.14159265358979323846 | 15 | #define PI 3.14159265358979323846 |
16 | #endif | ||
15 | #define TODEGREE(a) ((a)*180.0/PI) | 17 | #define TODEGREE(a) ((a)*180.0/PI) |
16 | #define TORAD(a) ((a)*PI/180.0) | 18 | #define TORAD(a) ((a)*PI/180.0) |
17 | 19 | ||