From 017f101e58848c394c0c81d3b6697dd58824ecd5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 8 Mar 2012 03:17:20 +0100 Subject: [PATCH] roundl: Avoid compilation error on AIX. * lib/math.in.h (roundl): Undefine macro before declaration. Needed on AIX 5.2..7.1. --- ChangeLog | 6 ++++++ lib/math.in.h | 1 + 2 files changed, 7 insertions(+) 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)); -- 2.39.5