changeset 16607:8b3e493a6849

expm1l: Avoid compilation error on AIX. * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on AIX 5.2..7.1.
author Bruno Haible <bruno@clisp.org>
date Thu, 08 Mar 2012 04:02:53 +0100
parents c65f617394a7
children 33400f2acfe2
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>
+
+	expm1l: Avoid compilation error on AIX.
+	* lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
+	AIX 5.2..7.1.
+
 2012-03-07  Bruno Haible  <bruno@clisp.org>
 
 	expm1l: Don't override undeclared system function on IRIX 6.5.
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -580,6 +580,7 @@
 
 #if @GNULIB_EXPM1L@
 # if !@HAVE_DECL_EXPM1L@
+#  undef expm1l
 _GL_FUNCDECL_SYS (expm1l, long double, (long double x));
 # endif
 _GL_CXXALIAS_SYS (expm1l, long double, (long double x));