projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
de6abdd
)
math: Fix some C++ test errors on Solaris 8.
author
Bruno Haible
<bruno@clisp.org>
Sun, 4 Apr 2010 18:15:21 +0000
(20:15 +0200)
committer
Bruno Haible
<bruno@clisp.org>
Sun, 4 Apr 2010 18:46:29 +0000
(20:46 +0200)
ChangeLog
patch
|
blob
|
history
lib/math.in.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
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.
2010-04-04 Bruno Haible <bruno@clisp.org>
math: Fix some C++ test errors on Cygwin.
diff --git
a/lib/math.in.h
b/lib/math.in.h
index f0d50215fc99d7cb59a5978bae8cb25f970b71b2..001d59a1dfd42ede445908d561331a8da0cf1cdf 100644
(file)
--- a/
lib/math.in.h
+++ b/
lib/math.in.h
@@
-520,14
+520,9
@@
_GL_WARN_ON_USE (tanl, "tanl is unportable - "
#if @GNULIB_TRUNCF@
# if !@HAVE_DECL_TRUNCF@
#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
# endif
+_GL_CXXALIAS_SYS (truncf, float, (float x));
_GL_CXXALIASWARN (truncf);
#elif defined GNULIB_POSIXCHECK
# undef truncf
_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 @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
# endif
+_GL_CXXALIAS_SYS (trunc, double, (double x));
_GL_CXXALIASWARN (trunc);
#elif defined GNULIB_POSIXCHECK
# undef trunc
_GL_CXXALIASWARN (trunc);
#elif defined GNULIB_POSIXCHECK
# undef trunc