aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/efgcvt_r.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/efgcvt_r.c b/misc/efgcvt_r.c
index 3e33f660c6..1f99c64e48 100644
--- a/misc/efgcvt_r.c
+++ b/misc/efgcvt_r.c
@@ -69,7 +69,9 @@ ecvt_r (value, ndigit, decpt, sign, buf, len)
char *buf;
size_t len;
{
- if (&log10)
+ double (*log10_function) (double) = &log10;
+
+ if (log10_function)
{
/* Use the reasonable code if -lm is included. */
ndigit -= (int) floor (log10 (fabs (value)));