summaryrefslogtreecommitdiff
path: root/lib/math.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-04-03 04:44:59 +0200
committerBruno Haible <bruno@clisp.org>2012-04-03 14:01:40 +0200
commit6c8149d7e17e4cbc70c3a777b746ac42fb3f8d5c (patch)
tree5c89c9003ee5e6f92a3e6e1366d6b8089c122a38 /lib/math.in.h
parent36d2768bd34a963cf2b4604e3f54d904ed9f17dd (diff)
downloadgnulib-6c8149d7e17e4cbc70c3a777b746ac42fb3f8d5c.tar.gz
New module 'logbf'.
* lib/math.in.h (logbf): New declaration. * lib/logbf.c: New file. * m4/logbf.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF, REPLACE_LOGBF. * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF, REPLACE_LOGBF. * modules/logbf: New file. * tests/test-math-c++.cc: Check the declaration of logbf. * doc/posix-functions/logbf.texi: Mention the new module.
Diffstat (limited to 'lib/math.in.h')
-rw-r--r--lib/math.in.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/math.in.h b/lib/math.in.h
index 40983a9640..247c64417c 100644
--- a/lib/math.in.h
+++ b/lib/math.in.h
@@ -1388,6 +1388,29 @@ _GL_WARN_ON_USE (log2l, "log2l is unportable - "
#endif
+#if @GNULIB_LOGBF@
+# if @REPLACE_LOGBF@
+# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+# undef logbf
+# define logbf rpl_logbf
+# endif
+_GL_FUNCDECL_RPL (logbf, float, (float x));
+_GL_CXXALIAS_RPL (logbf, float, (float x));
+# else
+# if !@HAVE_LOGBF@
+_GL_FUNCDECL_SYS (logbf, float, (float x));
+# endif
+_GL_CXXALIAS_SYS (logbf, float, (float x));
+# endif
+_GL_CXXALIASWARN (logbf);
+#elif defined GNULIB_POSIXCHECK
+# undef logbf
+# if HAVE_RAW_DECL_LOGBF
+_GL_WARN_ON_USE (logbf, "logbf is unportable - "
+ "use gnulib module logbf for portability");
+# endif
+#endif
+
#if @GNULIB_LOGB@
# if @REPLACE_LOGB@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)