Skip to content

Commit

Permalink
Merge pull request #54 from esdeboer/freebsd
Browse files Browse the repository at this point in the history
Define exp10 to build on *BSD
  • Loading branch information
AdolfVonKleist committed May 13, 2020
2 parents 1a7306a + c3558cd commit 894fd9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.ac
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
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 894fd9e

Please sign in to comment.