From 6b4f3e6c4f23d08729d225525a0bf0d514f8b335 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 30 Jan 2006 01:18:42 +0000 Subject: [PATCH] For conformance with general expectations, use M_PI, not PI. (This is in global.h, not RageUtil.h, because we include math.h in global.h, and M_PI is generally associated with math.h. As some systems do provide it in math.h, if we put it in RageUtil.h then we'll suffer breakage when people on those systems use M_PI without including RageUtil.h.) --- stepmania/src/global.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 76e1c15a74..129c2c78cb 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -145,6 +145,11 @@ typedef StdString::CStdString RString; /* Define a few functions if necessary */ #include + +#ifndef M_PI +#define M_PI 3.1415926535897932384626433832795 +#endif + #ifdef NEED_POWF inline float powf( float x, float y ) CONST_FUNCTION; float powf( float x, float y ) { return float( pow(double(x), double(y)) ); }