From: Bruno Haible Date: Sun, 8 Dec 2019 16:35:49 +0000 (+0100) Subject: Fix compilation errors on HP-UX 11/ia64. X-Git-Tag: v1.0~4539 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1554ca2f6bbe5b98d5ce8a5d0b876222aea9076a;p=gnulib.git Fix compilation errors on HP-UX 11/ia64. * lib/math.in.h (copysignf, fmaf, fma): Undefine before _GL_FUNCDECL_SYS. --- diff --git a/ChangeLog b/ChangeLog index f091cf0d3f..7b468512e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-12-08 Bruno Haible + + Fix compilation errors on HP-UX 11/ia64. + * lib/math.in.h (copysignf, fmaf, fma): Undefine before + _GL_FUNCDECL_SYS. + 2019-12-08 Bruno Haible Fix compilation error in C++ mode on OpenBSD. diff --git a/lib/math.in.h b/lib/math.in.h index 55130ab5a1..18f8ff3b75 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -500,6 +500,7 @@ _GL_WARN_ON_USE (ceill, "ceill is unportable - " #if @GNULIB_COPYSIGNF@ # if !@HAVE_DECL_COPYSIGNF@ +# undef copysignf _GL_FUNCDECL_SYS (copysignf, float, (float x, float y)); # endif _GL_CXXALIAS_SYS (copysignf, float, (float x, float y)); @@ -911,6 +912,7 @@ _GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z)); _GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z)); # else # if !@HAVE_FMAF@ +# undef fmaf _GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z)); # endif _GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z)); @@ -934,6 +936,7 @@ _GL_FUNCDECL_RPL (fma, double, (double x, double y, double z)); _GL_CXXALIAS_RPL (fma, double, (double x, double y, double z)); # else # if !@HAVE_FMA@ +# undef fma _GL_FUNCDECL_SYS (fma, double, (double x, double y, double z)); # endif _GL_CXXALIAS_SYS (fma, double, (double x, double y, double z));