]> granicus.if.org Git - python/commitdiff
Hack for Mac (where fabs is not usable as a function pointer).
authorGuido van Rossum <guido@python.org>
Thu, 8 Aug 1996 19:10:21 +0000 (19:10 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Aug 1996 19:10:21 +0000 (19:10 +0000)
Modules/mathmodule.c

index 242bd6f97729775489f1436d629e739436a8ef22..e69aea9f4a4e7f3b9662b372846fb45e136ca12e 100644 (file)
@@ -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)