From 3bcf570a17d25783187c8aa3413bf48425b29619 Mon Sep 17 00:00:00 2001 From: Nobuhiro Iwamatsu Date: Sat, 6 Jun 2015 08:57:33 +0900 Subject: Fix build on MIPS of linux MIPS of Linux platform is supported frexpl(3). This fixes to use the frexpl that are provided with gcc if user wants to build on MIPS of Linux platform. Signe-doff-by: Nobuhiro Iwamatsu --- src/fmt_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fmt_fp.c') diff --git a/src/fmt_fp.c b/src/fmt_fp.c index ef2f19dd5..a634edb34 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -90,7 +90,7 @@ fmt_u(uint32_t x, char *s) typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)]; #endif -#if defined(__CYGWIN32__) || defined(__NetBSD__) || defined(mips) +#if (defined(__CYGWIN32__) || defined(__NetBSD__) || defined(mips)) && !defined(__linux__) static long double frexpl (long double x, int *eptr) { -- cgit v1.2.3