diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-03 21:14:48 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-03 21:14:48 (GMT) |
commit | 0a83d79268e9d2b36decc78845cf71baced4ccc6 (patch) | |
tree | f3817265ff52e8ac6cefd0caaa1099ac349fef81 | |
parent | e2ca4245c90a4e41e45d943d4df2eacf7ef62962 (diff) | |
download | cpython-0a83d79268e9d2b36decc78845cf71baced4ccc6.zip cpython-0a83d79268e9d2b36decc78845cf71baced4ccc6.tar.gz cpython-0a83d79268e9d2b36decc78845cf71baced4ccc6.tar.bz2 |
Some build bots don't compile mathmodule. There is an issue with the long definition of pi and euler
-rw-r--r-- | Include/pyport.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index e5cbd5e..e375c39 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -352,12 +352,19 @@ extern "C" { /* High precision defintion of pi and e (Euler) * The values are taken from libc6's math.h. */ +#ifndef Py_MATH_PIl +#define Py_MATH_PIl 3.1415926535897932384626433832795029L +#endif #ifndef Py_MATH_PI -#define Py_MATH_PI 3.1415926535897932384626433832795029L +#define Py_MATH_PI 3.14159265358979323846 +#endif + +#ifndef Py_MATH_El +#define Py_MATH_El 2.7182818284590452353602874713526625L #endif #ifndef Py_MATH_E -#define Py_MATH_E 2.7182818284590452353602874713526625L +#define Py_MATH_E 2.7182818284590452354 #endif /* Py_IS_NAN(X) |