diff options
Diffstat (limited to 'lib/math.in.h')
| -rw-r--r-- | lib/math.in.h | 32 | 
1 files changed, 31 insertions, 1 deletions
diff --git a/lib/math.in.h b/lib/math.in.h index ccc35848..0ef1ba10 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -454,7 +454,9 @@ _GL_FUNCDECL_SYS (cbrtl, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (cbrtl, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (cbrtl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef cbrtl  # if HAVE_RAW_DECL_CBRTL @@ -567,7 +569,9 @@ _GL_WARN_ON_USE (copysign, "copysign is unportable - "  _GL_FUNCDECL_SYS (copysignl, long double, (long double x, long double y));  # endif  _GL_CXXALIAS_SYS (copysignl, long double, (long double x, long double y)); +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (copysignl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef copysignl  # if HAVE_RAW_DECL_COPYSIGNL @@ -749,7 +753,9 @@ _GL_FUNCDECL_SYS (exp2l, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (exp2l, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (exp2l); +# endif  #elif defined GNULIB_POSIXCHECK  # undef exp2l  # if HAVE_RAW_DECL_EXP2L @@ -824,7 +830,9 @@ _GL_FUNCDECL_SYS (expm1l, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (expm1l, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (expm1l); +# endif  #elif defined GNULIB_POSIXCHECK  # undef expm1l  # if HAVE_RAW_DECL_EXPM1L @@ -1016,7 +1024,9 @@ _GL_FUNCDECL_SYS (fmal, long double,  _GL_CXXALIAS_SYS (fmal, long double,                    (long double x, long double y, long double z));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (fmal); +# endif  #elif defined GNULIB_POSIXCHECK  # undef fmal  # if HAVE_RAW_DECL_FMAL @@ -1337,7 +1347,9 @@ _GL_FUNCDECL_SYS (ilogbl, int, (long double x));  #  endif  _GL_CXXALIAS_SYS (ilogbl, int, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (ilogbl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef ilogbl  # if HAVE_RAW_DECL_ILOGBL @@ -1652,7 +1664,9 @@ _GL_FUNCDECL_SYS (log1pl, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (log1pl, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (log1pl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef log1pl  # if HAVE_RAW_DECL_LOG1PL @@ -1726,7 +1740,9 @@ _GL_FUNCDECL_SYS (log2l, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (log2l, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (log2l); +# endif  #elif defined GNULIB_POSIXCHECK  # undef log2l  # if HAVE_RAW_DECL_LOG2L @@ -1798,7 +1814,9 @@ _GL_FUNCDECL_SYS (logbl, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (logbl, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (logbl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef logbl  # if HAVE_RAW_DECL_LOGBL @@ -1964,7 +1982,9 @@ _GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y));  #  endif  _GL_CXXALIAS_SYS (remainderl, long double, (long double x, long double y));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (remainderl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef remainderl  # if HAVE_RAW_DECL_REMAINDERL @@ -2018,7 +2038,9 @@ _GL_FUNCDECL_SYS (rintl, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (rintl, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (rintl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef rintl  # if HAVE_RAW_DECL_RINTL @@ -2093,7 +2115,9 @@ _GL_FUNCDECL_SYS (roundl, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (roundl, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (roundl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef roundl  # if HAVE_RAW_DECL_ROUNDL @@ -2350,7 +2374,9 @@ _GL_FUNCDECL_SYS (truncl, long double, (long double x));  #  endif  _GL_CXXALIAS_SYS (truncl, long double, (long double x));  # endif +# if __GLIBC__ >= 2  _GL_CXXALIASWARN (truncl); +# endif  #elif defined GNULIB_POSIXCHECK  # undef truncl  # if HAVE_RAW_DECL_TRUNCL @@ -2433,6 +2459,7 @@ _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite)       functions.  */  _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool)  #    define isfinite rpl_isfinite +#    define GNULIB_NAMESPACE_LACKS_ISFINITE 1  #   else  _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, isfinite, bool)  #   endif @@ -2467,6 +2494,7 @@ _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isinf)       functions.  */  _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, rpl_isinf, bool)  #    define isinf rpl_isinf +#    define GNULIB_NAMESPACE_LACKS_ISINF 1  #   else  _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, isinf, bool)  #   endif @@ -2589,11 +2617,12 @@ _GL_EXTERN_C int rpl_isnanl (long double x) _GL_ATTRIBUTE_CONST;  #  if defined isnan || defined GNULIB_NAMESPACE  _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)  #   undef isnan -#   if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__ && __clang_major__ < 12) || (defined __FreeBSD__ && __clang_major__ < 7) || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__))) +#   if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__ && __clang_major__ < 12) || (defined __FreeBSD__ && (__clang_major__ < 7 || __clang_major__ >= 11)) || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__)))    /* This platform's <cmath> possibly defines isnan through a set of inline       functions.  */  _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)  #    define isnan rpl_isnan +#    define GNULIB_NAMESPACE_LACKS_ISNAN 1  #   else  _GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, isnan, bool)  #   endif @@ -2677,6 +2706,7 @@ _GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)       functions.  */  _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool)  #    define signbit rpl_signbit +#    define GNULIB_NAMESPACE_LACKS_SIGNBIT 1  #   else  _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, signbit, bool)  #   endif  | 
