On Solaris 8, I'm seeing these errors: ../gllib/math.h:816: error: 'truncf' was not declared in this scope ../gllib/math.h:835: error: 'trunc' was not declared in this scope
This fixes it, by using the simpler idiom for a missing function. 2010-04-04 Bruno Haible <br...@clisp.org> math: Fix some C++ test errors on Solaris 8. * lib/math.in.h (truncf, trunc): Use simpler idiom. --- lib/math.in.h.orig Sun Apr 4 20:08:04 2010 +++ lib/math.in.h Sun Apr 4 20:07:16 2010 @@ -520,14 +520,9 @@ #if @GNULIB_TRUNCF@ # if !...@have_decl_truncf@ -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) -# define truncf rpl_truncf -# endif -_GL_FUNCDECL_RPL (truncf, float, (float x)); -_GL_CXXALIAS_RPL (truncf, float, (float x)); -# else -_GL_CXXALIAS_SYS (truncf, float, (float x)); +_GL_FUNCDECL_SYS (truncf, float, (float x)); # endif +_GL_CXXALIAS_SYS (truncf, float, (float x)); _GL_CXXALIASWARN (truncf); #elif defined GNULIB_POSIXCHECK # undef truncf @@ -539,14 +534,9 @@ #if @GNULIB_TRUNC@ # if !...@have_decl_trunc@ -# if !(defined __cplusplus && defined GNULIB_NAMESPACE) -# define trunc rpl_trunc -# endif -_GL_FUNCDECL_RPL (trunc, double, (double x)); -_GL_CXXALIAS_RPL (trunc, double, (double x)); -# else -_GL_CXXALIAS_SYS (trunc, double, (double x)); +_GL_FUNCDECL_SYS (trunc, double, (double x)); # endif +_GL_CXXALIAS_SYS (trunc, double, (double x)); _GL_CXXALIASWARN (trunc); #elif defined GNULIB_POSIXCHECK # undef trunc