math: Fix some C++ test errors on Solaris 8.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Apr 2010 18:15:21 +0000 (20:15 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Apr 2010 18:46:29 +0000 (20:46 +0200)
ChangeLog
lib/math.in.h

index 995ac877a96364468640dd8cb903e448e6f477d5..b6bec677e1c267b6b5d89c835ec358a07bf4b0cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       math: Fix some C++ test errors on Solaris 8.
+       * lib/math.in.h (truncf, trunc): Use simpler idiom.
+
 2010-04-04  Bruno Haible  <bruno@clisp.org>
 
        math: Fix some C++ test errors on Cygwin.
index f0d50215fc99d7cb59a5978bae8cb25f970b71b2..001d59a1dfd42ede445908d561331a8da0cf1cdf 100644 (file)
@@ -520,14 +520,9 @@ _GL_WARN_ON_USE (tanl, "tanl is unportable - "
 
 #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 @@ _GL_WARN_ON_USE (truncf, "truncf is unportable - "
 
 #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