changeset 16603:f57d6aac15ce

roundl: Avoid compilation error on AIX. * lib/math.in.h (roundl): Undefine macro before declaration. Needed on AIX 5.2..7.1.
author Bruno Haible <bruno@clisp.org>
date Thu, 08 Mar 2012 03:17:20 +0100
parents 549120e12a45
children 9ac8499fa137
files ChangeLog lib/math.in.h
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-07  Bruno Haible  <bruno@clisp.org>
+
+	roundl: Avoid compilation error on AIX.
+	* lib/math.in.h (roundl): Undefine macro before declaration. Needed on
+	AIX 5.2..7.1.
+
 2012-03-07  Bruno Haible  <bruno@clisp.org>
 
 	roundl: Don't override undeclared system function on IRIX 6.5.
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -1375,6 +1375,7 @@
 _GL_CXXALIAS_RPL (roundl, long double, (long double x));
 # else
 #  if !@HAVE_DECL_ROUNDL@
+#   undef roundl
 _GL_FUNCDECL_SYS (roundl, long double, (long double x));
 #  endif
 _GL_CXXALIAS_SYS (roundl, long double, (long double x));