From 3ec4f4eb86f1644c82d6a140b889de2c2a4f6d6a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 2 Oct 1995 14:03:33 -0300 Subject: small corrections to avoid warnings. --- mathlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mathlib.c') diff --git a/mathlib.c b/mathlib.c index dc3bc762..5f87a7fb 100644 --- a/mathlib.c +++ b/mathlib.c @@ -3,7 +3,7 @@ ** Mathematics library to LUA */ -char *rcs_mathlib="$Id: mathlib.c,v 1.8 1995/01/04 18:49:54 roberto Exp $"; +char *rcs_mathlib="$Id: mathlib.c,v 1.9 1995/02/06 19:36:43 roberto Exp roberto $"; #include /* NULL */ #include @@ -11,7 +11,9 @@ char *rcs_mathlib="$Id: mathlib.c,v 1.8 1995/01/04 18:49:54 roberto Exp $"; #include "lualib.h" #include "lua.h" +#ifndef PI #define PI 3.14159265358979323846 +#endif #define TODEGREE(a) ((a)*180.0/PI) #define TORAD(a) ((a)*PI/180.0) -- cgit v1.2.3-55-g6feb