From 06ffe4d37371ed799ce7e00be34eb992105afccc Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Sun, 8 Mar 2009 07:27:32 +0000 Subject: Use NPY_PI instead of C math lib one, which is not always available. --- numpy/core/src/umathmodule.c.src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/umathmodule.c.src') diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src index f0eb20f4a..890b38a5b 100644 --- a/numpy/core/src/umathmodule.c.src +++ b/numpy/core/src/umathmodule.c.src @@ -210,7 +210,7 @@ PyMODINIT_FUNC initumath(void) { InitOtherOperators(d); - PyDict_SetItemString(d, "pi", s = PyFloat_FromDouble(M_PI)); + PyDict_SetItemString(d, "pi", s = PyFloat_FromDouble(NPY_PI)); Py_DECREF(s); PyDict_SetItemString(d, "e", s = PyFloat_FromDouble(exp(1.0))); Py_DECREF(s); -- cgit v1.2.1