diff options
author | Bruno Haible <bruno@clisp.org> | 2010-04-04 19:59:32 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-04-04 20:00:22 +0200 |
commit | de6abddc83cd9af7a0cc73d93acbc015432612f2 (patch) | |
tree | 618595dc0cd5762e6fc3b18c7d074fcfa3f1676a /lib/math.in.h | |
parent | c3af7659f41a6b12580f225c660b8c2484e83033 (diff) | |
download | gnulib-de6abddc83cd9af7a0cc73d93acbc015432612f2.tar.gz |
math: Fix some C++ test errors on Cygwin.
Diffstat (limited to 'lib/math.in.h')
-rw-r--r-- | lib/math.in.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/lib/math.in.h b/lib/math.in.h index 5aad1a8e92..f0d50215fc 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -186,7 +186,10 @@ _GL_WARN_ON_USE (atanl, "atanl is unportable - " # endif _GL_FUNCDECL_RPL (ceilf, float, (float x)); _GL_CXXALIAS_RPL (ceilf, float, (float x)); -#else +# else +# if !@HAVE_DECL_CEILF@ +_GL_FUNCDECL_SYS (ceilf, float, (float x)); +# endif _GL_CXXALIAS_SYS (ceilf, float, (float x)); # endif _GL_CXXALIASWARN (ceilf); @@ -206,6 +209,9 @@ _GL_WARN_ON_USE (ceilf, "ceilf is unportable - " _GL_FUNCDECL_RPL (ceill, long double, (long double x)); _GL_CXXALIAS_RPL (ceill, long double, (long double x)); # else +# if !@HAVE_DECL_CEILL@ +_GL_FUNCDECL_SYS (ceill, long double, (long double x)); +# endif _GL_CXXALIAS_SYS (ceill, long double, (long double x)); # endif _GL_CXXALIASWARN (ceill); @@ -265,6 +271,9 @@ _GL_WARN_ON_USE (expl, "expl is unportable - " _GL_FUNCDECL_RPL (floorf, float, (float x)); _GL_CXXALIAS_RPL (floorf, float, (float x)); #else +# if !@HAVE_DECL_FLOORF@ +_GL_FUNCDECL_SYS (floorf, float, (float x)); +# endif _GL_CXXALIAS_SYS (floorf, float, (float x)); # endif _GL_CXXALIASWARN (floorf); @@ -284,6 +293,9 @@ _GL_WARN_ON_USE (floorf, "floorf is unportable - " _GL_FUNCDECL_RPL (floorl, long double, (long double x)); _GL_CXXALIAS_RPL (floorl, long double, (long double x)); # else +# if !@HAVE_DECL_FLOORL@ +_GL_FUNCDECL_SYS (floorl, long double, (long double x)); +# endif _GL_CXXALIAS_SYS (floorl, long double, (long double x)); # endif _GL_CXXALIASWARN (floorl); @@ -391,6 +403,9 @@ _GL_WARN_ON_USE (logl, "logl is unportable - " _GL_FUNCDECL_RPL (roundf, float, (float x)); _GL_CXXALIAS_RPL (roundf, float, (float x)); # else +# if !@HAVE_DECL_ROUNDF@ +_GL_FUNCDECL_SYS (roundf, float, (float x)); +# endif _GL_CXXALIAS_SYS (roundf, float, (float x)); # endif _GL_CXXALIASWARN (roundf); @@ -411,6 +426,9 @@ _GL_WARN_ON_USE (roundf, "roundf is unportable - " _GL_FUNCDECL_RPL (round, double, (double x)); _GL_CXXALIAS_RPL (round, double, (double x)); # else +# if !@HAVE_DECL_ROUND@ +_GL_FUNCDECL_SYS (round, double, (double x)); +# endif _GL_CXXALIAS_SYS (round, double, (double x)); # endif _GL_CXXALIASWARN (round); @@ -431,6 +449,9 @@ _GL_WARN_ON_USE (round, "round is unportable - " _GL_FUNCDECL_RPL (roundl, long double, (long double x)); _GL_CXXALIAS_RPL (roundl, long double, (long double x)); # else +# if !@HAVE_DECL_ROUNDL@ +_GL_FUNCDECL_SYS (roundl, long double, (long double x)); +# endif _GL_CXXALIAS_SYS (roundl, long double, (long double x)); # endif _GL_CXXALIASWARN (roundl); @@ -544,6 +565,9 @@ _GL_WARN_ON_USE (trunc, "trunc is unportable - " _GL_FUNCDECL_RPL (truncl, long double, (long double x)); _GL_CXXALIAS_RPL (truncl, long double, (long double x)); # else +# if !@HAVE_DECL_TRUNCL@ +_GL_FUNCDECL_SYS (truncl, long double, (long double x)); +# endif _GL_CXXALIAS_SYS (truncl, long double, (long double x)); # endif _GL_CXXALIASWARN (truncl); |