From 785e3f589d044effe179195bf2428d765833cae9 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 20 Jun 2020 07:17:06 +0200 Subject: [PATCH] Revert "exp10 replaced with pow when exp10 is not available" This reverts commit 5f1ab307d380c4d60410b911a272b6870b65c2d8. See the following commit for explanation. --- configure.ac | 3 --- src/ui/gui/find-dialog.c | 7 ------- 2 files changed, 10 deletions(-) diff --git a/configure.ac b/configure.ac index 6bb1b260c1..953e230190 100644 --- a/configure.ac +++ b/configure.ac @@ -296,9 +296,6 @@ if test x"$enable_debug" = x"yes" ; then AC_DEFINE(DEBUGGING, 1, [Define to 1 if debugging is enabled.]) fi -# exp10 is not available on all systems (MacOS) -AC_CHECK_LIB(m, exp10, [AC_DEFINE([HAVE_EXP10],[1],[Define to 1 if your system has 'exp10'.])]) - # iconv is required AM_ICONV if test "$am_cv_func_iconv" != "yes"; then diff --git a/src/ui/gui/find-dialog.c b/src/ui/gui/find-dialog.c index 01abc0c816..2ff619a60a 100644 --- a/src/ui/gui/find-dialog.c +++ b/src/ui/gui/find-dialog.c @@ -49,13 +49,6 @@ which match particular strings */ #define _(msgid) gettext (msgid) #define N_(msgid) msgid -/* Some systems like MacOS do not have exp10 */ -#ifndef HAVE_EXP10 -inline static double exp10(double x) -{ - return pow(10.0, x); -} -#endif struct find_dialog { -- 2.30.2