]> Savannah Git Hosting - gnulib.git/commitdiff
roundl: Avoid compilation error on AIX.
authorBruno Haible <bruno@clisp.org>
Thu, 8 Mar 2012 02:17:20 +0000 (03:17 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 8 Mar 2012 02:18:02 +0000 (03:18 +0100)
* lib/math.in.h (roundl): Undefine macro before declaration. Needed on
AIX 5.2..7.1.

ChangeLog
lib/math.in.h

index 0a4daf2092222dedb7dd6dab263c4c22bdd04f35..de925c96fcf9c0dfbbd21e2ed5b1e138c93e4c24 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-07  Bruno Haible  <bruno@clisp.org>
+
+       roundl: Avoid compilation error on AIX.
+       * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
+       AIX 5.2..7.1.
+
 2012-03-07  Bruno Haible  <bruno@clisp.org>
 
        roundl: Don't override undeclared system function on IRIX 6.5.
index f1fdfacaa2de8e6ab7605f56e79e169a3d8aa9b1..d81f226a554a0f02ae3444f7866f8b4958b8e3ce 100644 (file)
@@ -1375,6 +1375,7 @@ _GL_FUNCDECL_RPL (roundl, long double, (long double x));
 _GL_CXXALIAS_RPL (roundl, long double, (long double x));
 # else
 #  if !@HAVE_DECL_ROUNDL@
+#   undef roundl
 _GL_FUNCDECL_SYS (roundl, long double, (long double x));
 #  endif
 _GL_CXXALIAS_SYS (roundl, long double, (long double x));