> 2012-02-25 Bruno Haible <br...@clisp.org> > > New module 'remainderl'. > * lib/math.in.h (remainderh): New declaration. > * lib/remainderl.c: New file. > * m4/remainderl.m4: New file. > * modules/remainderl: New file. > * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared. > (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL. > * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL, > HAVE_REMAINDERL. > * doc/posix-functions/remainderl.texi: Mention the new module.
This needs a fix on AIX >= 5.2, where remainderl() is defined as a macro. 2012-03-13 Bruno Haible <br...@clisp.org> remainderl: Avoid compilation error on AIX >= 5.2. * lib/math.in.h (remainderl): Undefine macro from the system header. --- lib/math.in.h.orig Tue Mar 13 23:59:47 2012 +++ lib/math.in.h Tue Mar 13 23:59:41 2012 @@ -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));