On Cygwin 1.7.2 and Solaris 8, I'm seeing these errors: ../gllib/math.h:526: error: 'cosl' was not declared in this scope ../gllib/math.h:672: error: 'logl' was not declared in this scope ../gllib/math.h:766: error: 'sinl' was not declared in this scope
There is no reason to define rpl_cosl instead of cosl, because no platform is known which has the function in some shared libraries but does not declare it. 2010-04-04 Bruno Haible <br...@clisp.org> math: Fix some C++ test errors on Solaris 8 and Cygwin. * lib/math.in.h (cosl, logl, sinl): Use simpler idiom. --- lib/math.in.h.orig Sun Apr 4 21:16:50 2010 +++ lib/math.in.h Sun Apr 4 21:03:11 2010 @@ -225,19 +225,10 @@ #if @GNULIB_COSL@ -# if !...@have_cosl@ -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) -# undef cosl -# define cosl rpl_cosl -# endif -_GL_FUNCDECL_RPL (cosl, long double, (long double x)); -_GL_CXXALIAS_RPL (cosl, long double, (long double x)); -# else -# if !...@have_decl_cosl@ +# if !...@have_cosl@ || !...@have_decl_cosl@ _GL_FUNCDECL_SYS (cosl, long double, (long double x)); -# endif -_GL_CXXALIAS_SYS (cosl, long double, (long double x)); # endif +_GL_CXXALIAS_SYS (cosl, long double, (long double x)); _GL_CXXALIASWARN (cosl); #elif defined GNULIB_POSIXCHECK # undef cosl @@ -371,19 +362,10 @@ #if @GNULIB_LOGL@ -# if !...@have_logl@ -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) -# undef logl -# define logl rpl_logl -# endif -_GL_FUNCDECL_RPL (logl, long double, (long double x)); -_GL_CXXALIAS_RPL (logl, long double, (long double x)); -# else -# if !...@have_decl_logl@ +# if !...@have_logl@ || !...@have_decl_logl@ _GL_FUNCDECL_SYS (logl, long double, (long double x)); -# endif -_GL_CXXALIAS_SYS (logl, long double, (long double x)); # endif +_GL_CXXALIAS_SYS (logl, long double, (long double x)); _GL_CXXALIASWARN (logl); #elif defined GNULIB_POSIXCHECK # undef logl @@ -465,19 +447,10 @@ #if @GNULIB_SINL@ -# if !...@have_sinl@ -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) -# undef sinl -# define sinl rpl_sinl -# endif -_GL_FUNCDECL_RPL (sinl, long double, (long double x)); -_GL_CXXALIAS_RPL (sinl, long double, (long double x)); -# else -# if !...@have_decl_sinl@ +# if !...@have_sinl@ || !...@have_decl_sinl@ _GL_FUNCDECL_SYS (sinl, long double, (long double x)); -# endif -_GL_CXXALIAS_SYS (sinl, long double, (long double x)); # endif +_GL_CXXALIAS_SYS (sinl, long double, (long double x)); _GL_CXXALIASWARN (sinl); #elif defined GNULIB_POSIXCHECK # undef sinl