Mercurial > cpython-lru_cache-weakref
diff Modules/mathmodule.c @ 3974:fc505f02ad8a legacy-trunk
Hack for Mac (where fabs is not usable as a function pointer).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 08 Aug 1996 19:10:21 +0000 |
| parents | 2da12c9d714f |
| children | 6f6ba7c00823 |
line wrap: on
line diff
--- a/Modules/mathmodule.c Thu Aug 08 19:09:53 1996 +0000 +++ b/Modules/mathmodule.c Thu Aug 08 19:10:21 1996 +0000 @@ -145,7 +145,12 @@ FUNC1(math_cos, cos) FUNC1(math_cosh, cosh) FUNC1(math_exp, exp) +#ifdef __MWERKS__ +double myfabs(double x) { return fabs(x); } +FUNC1(math_fabs, myfabs) +#else FUNC1(math_fabs, fabs) +#endif FUNC1(math_floor, floor) FUNC2(math_fmod, fmod) FUNC2(math_hypot, hypot)
