summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2016-12-17 20:48:34 +0100
committerBruno Haible <bruno@clisp.org>2016-12-17 23:09:18 +0100
commit9ef2e6d2053ea4d0068ecc1761f2ec81d4971790 (patch)
tree47fa7cf17cfba64e52a94276826bf4bca15da04b /modules
parentc7a2c318d3e7af5331ff5571125702c0c57546f6 (diff)
downloadgnulib-9ef2e6d2053ea4d0068ecc1761f2ec81d4971790.tar.gz
tanf: Avoid redefinition error on MSVC.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF. * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function may be defined as an inline function. * modules/math (Makefile.am): Substitute REPLACE_TANF. * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
Diffstat (limited to 'modules')
-rw-r--r--modules/math1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/math b/modules/math
index a22d369fa8..317e68805a 100644
--- a/modules/math
+++ b/modules/math
@@ -296,6 +296,7 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
-e 's|@''REPLACE_SINHF''@|$(REPLACE_SINHF)|g' \
-e 's|@''REPLACE_SQRTF''@|$(REPLACE_SQRTF)|g' \
-e 's|@''REPLACE_SQRTL''@|$(REPLACE_SQRTL)|g' \
+ -e 's|@''REPLACE_TANF''@|$(REPLACE_TANF)|g' \
-e 's|@''REPLACE_TRUNC''@|$(REPLACE_TRUNC)|g' \
-e 's|@''REPLACE_TRUNCF''@|$(REPLACE_TRUNCF)|g' \
-e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \