diff options
author | Bruno Haible <bruno@clisp.org> | 2016-12-17 19:41:12 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2016-12-17 23:09:07 +0100 |
commit | 21ec014a2ffe8d53dd1d4744ff5775853340e3cb (patch) | |
tree | 7523ff9087890c245d2d595bed9c20a374fdeced /modules/math | |
parent | c3c53687f7772af44c67899be922b385a68533b0 (diff) | |
download | gnulib-21ec014a2ffe8d53dd1d4744ff5775853340e3cb.tar.gz |
expf: Avoid redefinition error on MSVC.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
* m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
may be defined as an inline function.
* modules/math (Makefile.am): Substitute REPLACE_EXPF.
* lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
Diffstat (limited to 'modules/math')
-rw-r--r-- | modules/math | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/math b/modules/math index 0fa946b96b..497c692d24 100644 --- a/modules/math +++ b/modules/math @@ -236,6 +236,7 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $( -e 's|@''REPLACE_CEILL''@|$(REPLACE_CEILL)|g' \ -e 's|@''REPLACE_COSF''@|$(REPLACE_COSF)|g' \ -e 's|@''REPLACE_COSHF''@|$(REPLACE_COSHF)|g' \ + -e 's|@''REPLACE_EXPF''@|$(REPLACE_EXPF)|g' \ -e 's|@''REPLACE_EXPM1''@|$(REPLACE_EXPM1)|g' \ -e 's|@''REPLACE_EXPM1F''@|$(REPLACE_EXPM1F)|g' \ -e 's|@''REPLACE_EXP2''@|$(REPLACE_EXP2)|g' \ |