From: Bruno Haible Date: Thu, 8 Mar 2012 02:17:20 +0000 (+0100) Subject: roundl: Avoid compilation error on AIX. X-Git-Tag: v0.1~923 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=017f101e58848c394c0c81d3b6697dd58824ecd5;p=gnulib.git roundl: Avoid compilation error on AIX. * lib/math.in.h (roundl): Undefine macro before declaration. Needed on AIX 5.2..7.1. --- diff --git a/ChangeLog b/ChangeLog index 0a4daf2092..de925c96fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-03-07 Bruno Haible + + 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 roundl: Don't override undeclared system function on IRIX 6.5. diff --git a/lib/math.in.h b/lib/math.in.h index f1fdfacaa2..d81f226a55 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -1375,6 +1375,7 @@ _GL_FUNCDECL_RPL (roundl, long double, (long double x)); _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));