Mercurial > hg > octave-kai > gnulib-hg
comparison lib/math.in.h @ 15863:c2fa2febdb1f
New module 'logf'.
* lib/math.in.h (logf): New declaration.
* lib/logf.c: New file.
* m4/logf.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
* modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
* modules/logf: New file.
* tests/test-math-c++.cc: Check the declaration of logf.
* doc/posix-functions/logf.texi: Mention the new module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 08 Oct 2011 22:18:44 +0200 |
parents | e6ff40a73d85 |
children | 215da3b412e0 |
comparison
equal
deleted
inserted
replaced
15862:e369ba8115ea | 15863:c2fa2febdb1f |
---|---|
496 _GL_WARN_ON_USE (logb, "logb is unportable - " | 496 _GL_WARN_ON_USE (logb, "logb is unportable - " |
497 "use gnulib module logb for portability"); | 497 "use gnulib module logb for portability"); |
498 # endif | 498 # endif |
499 #endif | 499 #endif |
500 | 500 |
501 | |
502 #if @GNULIB_LOGF@ | |
503 # if !@HAVE_LOGF@ | |
504 # undef logf | |
505 _GL_FUNCDECL_SYS (logf, float, (float x)); | |
506 # endif | |
507 _GL_CXXALIAS_SYS (logf, float, (float x)); | |
508 _GL_CXXALIASWARN (logf); | |
509 #elif defined GNULIB_POSIXCHECK | |
510 # undef logf | |
511 # if HAVE_RAW_DECL_LOGF | |
512 _GL_WARN_ON_USE (logf, "logf is unportable - " | |
513 "use gnulib module logf for portability"); | |
514 # endif | |
515 #endif | |
501 | 516 |
502 #if @GNULIB_LOGL@ | 517 #if @GNULIB_LOGL@ |
503 # if !@HAVE_LOGL@ || !@HAVE_DECL_LOGL@ | 518 # if !@HAVE_LOGL@ || !@HAVE_DECL_LOGL@ |
504 _GL_FUNCDECL_SYS (logl, long double, (long double x)); | 519 _GL_FUNCDECL_SYS (logl, long double, (long double x)); |
505 # endif | 520 # endif |