summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-08 17:35:49 +0100
committerBruno Haible <bruno@clisp.org>2019-12-08 17:35:49 +0100
commit1554ca2f6bbe5b98d5ce8a5d0b876222aea9076a (patch)
tree0c2eabcb14f3b2a6f458fd1caed2e60ba7af6e45
parent6211959993db9fa9d3c1573bb5008e0dd7d9cf89 (diff)
downloadgnulib-1554ca2f6bbe5b98d5ce8a5d0b876222aea9076a.tar.gz
gnulib-1554ca2f6bbe5b98d5ce8a5d0b876222aea9076a.tar.bz2
Fix compilation errors on HP-UX 11/ia64.
* lib/math.in.h (copysignf, fmaf, fma): Undefine before _GL_FUNCDECL_SYS.
-rw-r--r--ChangeLog6
-rw-r--r--lib/math.in.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f091cf0d3f..7b468512e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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.
* lib/signal.in.h (signal): Declare 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));

Return to:

Send suggestions and report system problems to the System administrator.