]> Savannah Git Hosting - gnulib.git/commitdiff
ilogbl: Fix compilation error with xlclang on AIX 7.2.
authorBruno Haible <bruno@clisp.org>
Wed, 6 Jan 2021 10:59:57 +0000 (11:59 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 6 Jan 2021 10:59:57 +0000 (11:59 +0100)
* lib/math.in.h (ilogbl): Undefine macro before declaration.

ChangeLog
lib/math.in.h

index 9b99954583fa1f0517cd62b359bf8dfcdae5e162..470583d8f1c2435f56a9eb3942ace97b2b9e5473 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-06  Bruno Haible  <bruno@clisp.org>
+
+       ilogbl: Fix compilation error with xlclang on AIX 7.2.
+       * lib/math.in.h (ilogbl): Undefine macro before declaration.
+
 2021-01-06  Bruno Haible  <bruno@clisp.org>
 
        ilogbl: Fix test failures on AIX 7.1 in 64-bit mode.
index 6208a015eadd10219691054ef7b105933411387c..335505da61275e797346846f9e381b6838411e1d 100644 (file)
@@ -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));