make math.h compatibe with c89

This commit is contained in:
Rich Felker 2012-03-02 00:36:26 -05:00
parent 6cf51fe51a
commit db3e78cee5
1 changed files with 5 additions and 1 deletions

View File

@ -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;