# HG changeset patch # User Bruno Haible # Date 1331175773 -3600 # Node ID 8b3e493a68496c5a35e0fac5942aada8fec7e0c5 # Parent c65f617394a792c6f29cc8fc8d6b7027c4084be0 expm1l: Avoid compilation error on AIX. * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on AIX 5.2..7.1. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-03-07 Bruno Haible + + 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 expm1l: Don't override undeclared system function on IRIX 6.5. diff --git a/lib/math.in.h b/lib/math.in.h --- 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));