aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-07-07 14:54:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-07-07 14:54:08 -0300
commit3f43aaa23f9005a295056d0dce46a59565f1ef82 (patch)
tree8c479e26b99ebbe53bca16f9d5aaeb47434a79ab
parent3b4c831ca9e7d04a1e62eee2016b7c001715fbfc (diff)
downloadlua-3f43aaa23f9005a295056d0dce46a59565f1ef82.tar.gz
lua-3f43aaa23f9005a295056d0dce46a59565f1ef82.tar.bz2
lua-3f43aaa23f9005a295056d0dce46a59565f1ef82.zip
new RedHat defines PI :-(
-rw-r--r--lmathlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 60582677..5e9f10b0 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.15 1999/01/04 12:41:12 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.16 1999/02/19 17:33:35 roberto Exp roberto $
3** Lua standard mathematical library 3** Lua standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -13,6 +13,7 @@
13#include "lualib.h" 13#include "lualib.h"
14 14
15 15
16#undef PI
16#define PI (3.14159265358979323846) 17#define PI (3.14159265358979323846)
17#define RADIANS_PER_DEGREE (PI/180.0) 18#define RADIANS_PER_DEGREE (PI/180.0)
18 19