summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-03-02 00:36:26 -0500
committerRich Felker <dalias@aerifal.cx>2012-03-02 00:36:26 -0500
commitdb3e78cee5640edd3af95682b5ed554814e0d342 (patch)
tree33eab7ceaebe8121d551dde0694d57ed006d5885
parent6cf51fe51ab48d66e917a2c99c0b40adb089268e (diff)
downloadmusl-db3e78cee5640edd3af95682b5ed554814e0d342.tar.gz
musl-db3e78cee5640edd3af95682b5ed554814e0d342.tar.bz2
musl-db3e78cee5640edd3af95682b5ed554814e0d342.tar.xz
musl-db3e78cee5640edd3af95682b5ed554814e0d342.zip
make math.h compatibe with c89
-rw-r--r--include/math.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/math.h b/include/math.h
index 1a5f6fe9..4af75ed7 100644
--- a/include/math.h
+++ b/include/math.h
@@ -52,7 +52,11 @@ int __fpclassifyl(long double);
#define isunordered(x,y) (isnan((x)) ? ((y),1) : isnan((y)))
-static inline int __isrel(long double __x, long double __y, int __rel)
+static
+#if __STDC_VERSION >= 199901L
+inline
+#endif
+int __isrel(long double __x, long double __y, int __rel)
{
if (isunordered(__x, __y)) return 0;
if (__rel==-2) return __x < __y;