comparison lib/math.in.h @ 16412:a50ff00ce4ee

remainder: Support for MSVC. * lib/math.in.h (remainder): New declaration. * lib/remainder.c: New file. * m4/remainder.m4: New file. * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4. (Depends-on): Add math, round, fma. (configure.ac): Use results of gl_FUNC_REMAINDER. * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER, HAVE_DECL_REMAINDER. * modules/math (Makefile.am): Substitute GNULIB_REMAINDER, HAVE_REMAINDER, HAVE_DECL_REMAINDER. * tests/test-math-c++.cc: Check the declaration of remainder. * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5 problems are fixed.
author Bruno Haible <bruno@clisp.org>
date Sat, 25 Feb 2012 18:27:46 +0100
parents 7a80e494e5e8
children 3a9564d7a3a5
comparison
equal deleted inserted replaced
16411:2c846fbb8f16 16412:a50ff00ce4ee
892 #elif defined GNULIB_POSIXCHECK 892 #elif defined GNULIB_POSIXCHECK
893 # undef powf 893 # undef powf
894 # if HAVE_RAW_DECL_POWF 894 # if HAVE_RAW_DECL_POWF
895 _GL_WARN_ON_USE (powf, "powf is unportable - " 895 _GL_WARN_ON_USE (powf, "powf is unportable - "
896 "use gnulib module powf for portability"); 896 "use gnulib module powf for portability");
897 # endif
898 #endif
899
900
901 #if @GNULIB_REMAINDER@
902 # if !@HAVE_REMAINDER@ || !@HAVE_DECL_REMAINDER@
903 _GL_FUNCDECL_SYS (remainder, double, (double x, double y));
904 # endif
905 _GL_CXXALIAS_SYS (remainder, double, (double x, double y));
906 _GL_CXXALIASWARN (remainder);
907 #elif defined GNULIB_POSIXCHECK
908 # undef remainder
909 # if HAVE_RAW_DECL_REMAINDER
910 _GL_WARN_ON_USE (remainder, "remainder is unportable - "
911 "use gnulib module remainder for portability");
897 # endif 912 # endif
898 #endif 913 #endif
899 914
900 915
901 #if @GNULIB_RINTF@ 916 #if @GNULIB_RINTF@