]> Savannah Git Hosting - gnulib.git/commitdiff
Fix compilation errors on HP-UX 11/ia64.
authorBruno Haible <bruno@clisp.org>
Sun, 8 Dec 2019 16:35:49 +0000 (17:35 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 8 Dec 2019 16:35:49 +0000 (17:35 +0100)
* lib/math.in.h (copysignf, fmaf, fma): Undefine before
_GL_FUNCDECL_SYS.

ChangeLog
lib/math.in.h

index f091cf0d3fba5f5bda4236f40858b822e16b9d64..7b468512e10f356ff3654642dbe07db8ea956df2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-12-08  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        Fix compilation error in C++ mode on OpenBSD.
index 55130ab5a1c577a0827de6c2c0ed58266c06d374..18f8ff3b75ac3087af444b6ee6c579ea2a02c97f 100644 (file)
@@ -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));