Revert "exp10 replaced with pow when exp10 is not available"
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 20 Jun 2020 05:17:06 +0000 (07:17 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 20 Jun 2020 05:17:03 +0000 (07:17 +0200)
This reverts commit 5f1ab307d380c4d60410b911a272b6870b65c2d8.
See the following commit for explanation.

configure.ac
src/ui/gui/find-dialog.c

index 6bb1b260c136158be8e20a8b2aeaea2a3684c686..953e230190c2cc6caac875c9d2c562fbbe0b7717 100644 (file)
@@ -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
index 01abc0c81644c2a7d6c8e07a83050bbc641f9428..2ff619a60a25c0c974dcc62092a97a7a40d9f540 100644 (file)
@@ -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
 {