projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cf51fe
)
make math.h compatibe with c89
author
Rich Felker
<dalias@aerifal.cx>
Fri, 2 Mar 2012 05:36:26 +0000
(
00:36
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 2 Mar 2012 05:36:26 +0000
(
00:36
-0500)
include/math.h
patch
|
blob
|
history
diff --git
a/include/math.h
b/include/math.h
index 1a5f6fe9a4969c1be02810c2ceef6e11bc921235..4af75ed735f85f15020479271b8a57fff3b85161 100644
(file)
--- 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;