mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Hack for Mac (where fabs is not usable as a function pointer).
This commit is contained in:
parent
97867b2ce2
commit
6412b1de5d
1 changed files with 5 additions and 0 deletions
|
@ -145,7 +145,12 @@ FUNC1(math_ceil, ceil)
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue