From: Bruno Haible Date: Wed, 6 Jan 2021 10:59:57 +0000 (+0100) Subject: ilogbl: Fix compilation error with xlclang on AIX 7.2. X-Git-Tag: v1.0~3189 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9b8b302f6d793179b31619863faa987618082863;p=gnulib.git ilogbl: Fix compilation error with xlclang on AIX 7.2. * lib/math.in.h (ilogbl): Undefine macro before declaration. --- 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));