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 0a4daf209..de925c96f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 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. * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries also when it is not declared. Set HAVE_ROUNDL. For replacement code, diff --git a/lib/math.in.h b/lib/math.in.h index f1fdfacaa..d81f226a5 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.11.0