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 0a4daf2..de925c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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.
        * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
        also when it is not declared. Set HAVE_ROUNDL. For replacement code,
index f1fdfac..d81f226 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));