X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fmath.h;h=4c46a055fbdd218d4747a025502b515643fce01b;hb=9fcecd7b34c66e9d0a2b000809e022a4f3e5e951;hp=677248287ae99470346db96e5d64926ed12b7645;hpb=e0037efc1253e190c7c75f74e5a05333fdd807bb;p=musl diff --git a/include/math.h b/include/math.h index 67724828..4c46a055 100644 --- a/include/math.h +++ b/include/math.h @@ -1,6 +1,12 @@ #ifndef _MATH_H #define _MATH_H +#ifdef __cplusplus +extern "C" { +#endif + +#define __NEED_float_t +#define __NEED_double_t #define __NEED___uint16_t #define __NEED___uint32_t #define __NEED___uint64_t @@ -46,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; @@ -317,4 +327,8 @@ extern int signgam; double scalb(double, double); #endif +#ifdef __cplusplus +} +#endif + #endif