From 9b8b302f6d793179b31619863faa987618082863 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 6 Jan 2021 11:59:57 +0100 Subject: [PATCH] ilogbl: Fix compilation error with xlclang on AIX 7.2. * lib/math.in.h (ilogbl): Undefine macro before declaration. --- ChangeLog | 5 +++++ lib/math.in.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9b99954583..470583d8f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-01-06 Bruno Haible + + ilogbl: Fix compilation error with xlclang on AIX 7.2. + * lib/math.in.h (ilogbl): Undefine macro before declaration. + 2021-01-06 Bruno Haible ilogbl: Fix test failures on AIX 7.1 in 64-bit mode. diff --git a/lib/math.in.h b/lib/math.in.h index 6208a015ea..335505da61 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -1322,6 +1322,7 @@ _GL_FUNCDECL_RPL (ilogbl, int, (long double x)); _GL_CXXALIAS_RPL (ilogbl, int, (long double x)); # else # if !@HAVE_ILOGBL@ +# undef ilogbl _GL_FUNCDECL_SYS (ilogbl, int, (long double x)); # endif _GL_CXXALIAS_SYS (ilogbl, int, (long double x)); @@ -2102,7 +2103,7 @@ _GL_FUNCDECL_RPL (sinf, float, (float x)); _GL_CXXALIAS_RPL (sinf, float, (float x)); # else # if !@HAVE_SINF@ - # undef sinf +# undef sinf _GL_FUNCDECL_SYS (sinf, float, (float x)); # endif _GL_CXXALIAS_SYS (sinf, float, (float x)); -- 2.39.5