definition of M_PI
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sun, 18 Dec 2005 21:56:40 +0000 (21:56 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Sun, 18 Dec 2005 21:56:40 +0000 (21:56 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@10648 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/math_approx.c

index 08038ba..41cb855 100644 (file)
@@ -151,6 +151,10 @@ spx_word16_t spx_cos(spx_word16_t x)
 
 #else
 
+#ifndef M_PI
+#define M_PI           3.14159265358979323846  /* pi */
+#endif
+
 #define C1 0.9999932946f
 #define C2 -0.4999124376f
 #define C3 0.0414877472f