changeset 16694:37aa30e20e53

remainderl: Avoid compilation error on AIX >= 5.2. * lib/math.in.h (remainderl): Undefine macro from the system header.
author Bruno Haible <bruno@clisp.org>
date Wed, 14 Mar 2012 00:02:12 +0100
parents 55c4c6aa19f4
children 8b7c2f7abb3b
files ChangeLog lib/math.in.h
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-13  Bruno Haible  <bruno@clisp.org>
+
+	remainderl: Avoid compilation error on AIX >= 5.2.
+	* lib/math.in.h (remainderl): Undefine macro from the system header.
+
 2012-03-13  Bruno Haible  <bruno@clisp.org>
 
 	Avoid compilation errors with MSVC option -fp:strict.
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -1506,6 +1506,7 @@
 _GL_CXXALIAS_RPL (remainderl, long double, (long double x, long double y));
 # else
 #  if !@HAVE_DECL_REMAINDERL@
+#   undef remainderl
 _GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y));
 #  endif
 _GL_CXXALIAS_SYS (remainderl, long double, (long double x, long double y));