[Numpy-svn] r5842 - branches/clean_math_config/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sat Sep 20 05:51:38 CDT 2008


Author: cdavid
Date: 2008-09-20 05:51:35 -0500 (Sat, 20 Sep 2008)
New Revision: 5842

Modified:
   branches/clean_math_config/numpy/core/src/umathmodule.c.src
Log:
Forgot to define M_PI if not available.

Modified: branches/clean_math_config/numpy/core/src/umathmodule.c.src
===================================================================
--- branches/clean_math_config/numpy/core/src/umathmodule.c.src	2008-09-20 10:49:01 UTC (rev 5841)
+++ branches/clean_math_config/numpy/core/src/umathmodule.c.src	2008-09-20 10:51:35 UTC (rev 5842)
@@ -17,6 +17,9 @@
 #include "config.h"
 #include <math.h>
 
+#ifndef M_PI
+#define M_PI 3.14159265358979323846264338328
+#endif
 #include "math_c99.inc"
 
 float degreesf(float x) {



More information about the Numpy-svn mailing list