[PATCH] Fix alpha mathinline.h
Jakub Jelinek
jakub@redhat.com
Wed Jun 7 08:44:00 GMT 2000
Hi!
*fdim* is declared c99 only in mathcalls.h, so mathinline.h should match
that.
2000-06-07 Jakub Jelinek <jakub@redhat.com>
* sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
__USE_ISOC99.
(fdimf, __fdim, fdim): Likewise.
--- libc/sysdeps/alpha/fpu/bits/mathinline.h.jj Wed Jun 7 17:29:56 2000
+++ libc/sysdeps/alpha/fpu/bits/mathinline.h Wed Jun 7 17:32:30 2000
@@ -152,6 +152,8 @@ __MATH_INLINE float floorf (float __x) _
__MATH_INLINE double floor (double __x) __THROW { return __floor(__x); }
+#ifdef __USE_ISOC99
+
__MATH_INLINE float __fdimf (float __x, float __y) __THROW
{
return __x < __y ? 0.0f : __x - __y;
@@ -171,3 +173,5 @@ __MATH_INLINE double fdim (double __x, d
{
return __x < __y ? 0.0 : __x - __y;
}
+
+#endif
Jakub
More information about the Libc-hacker
mailing list