Skip to content

Commit

Permalink
Define exp10 if it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdeboer committed Jan 24, 2020
1 parent 37a67de commit c3558cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_STRTOD
AC_CHECK_FUNCS([memmove strchr strrchr strspn])

AC_CHECK_MATH_FUNC(exp10)

AC_ARG_WITH([openfst-includes],
[AS_HELP_STRING([--with-openfst-includes],
Expand Down
2 changes: 1 addition & 1 deletion src/3rdparty/rnnlm/rnnlmlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define _RNNLMLIB_H_

#define MAX_STRING 100
#ifdef __APPLE__
#ifndef HAVE_EXP10
#define exp10(n) pow((double)10,(4-n))
#endif

Expand Down

0 comments on commit c3558cd

Please sign in to comment.