Mercurial > hg > octave-kai > gnulib-hg
diff lib/math.in.h @ 15832:022f031c4bdf
New module 'fmodf'.
* lib/math.in.h (fmodf): New declaration.
* lib/fmodf.c: New file.
* m4/fmodf.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
* modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
* modules/fmodf: New file.
* tests/test-math-c++.cc: Check the declaration of fmodf.
* doc/posix-functions/fmodf.texi: Mention the new module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 06 Oct 2011 01:01:52 +0200 |
parents | 36ce57192e3b |
children | 0e07b354626a |
line wrap: on
line diff
--- a/lib/math.in.h +++ b/lib/math.in.h @@ -358,6 +358,22 @@ #endif +#if @GNULIB_FMODF@ +# if !@HAVE_FMODF@ +# undef fmodf +_GL_FUNCDECL_SYS (fmodf, float, (float x, float y)); +# endif +_GL_CXXALIAS_SYS (fmodf, float, (float x, float y)); +_GL_CXXALIASWARN (fmodf); +#elif defined GNULIB_POSIXCHECK +# undef fmodf +# if HAVE_RAW_DECL_FMODF +_GL_WARN_ON_USE (fmodf, "fmodf is unportable - " + "use gnulib module fmodf for portability"); +# endif +#endif + + /* Write x as x = mantissa * 2^exp where