diff options
| author | Nobuhiro Iwamatsu <[email protected]> | 2015-06-06 08:57:33 +0900 |
|---|---|---|
| committer | Nobuhiro Iwamatsu <[email protected]> | 2015-06-06 09:05:53 +0900 |
| commit | 3bcf570a17d25783187c8aa3413bf48425b29619 (patch) | |
| tree | f81c7406f7952a1c3815fc2c68368431c851c860 /src/fmt_fp.c | |
| parent | 630c2c5853b976c3ca753d9713590b3e972621b8 (diff) | |
| download | mruby-3bcf570a17d25783187c8aa3413bf48425b29619.tar.gz mruby-3bcf570a17d25783187c8aa3413bf48425b29619.zip | |
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 <[email protected]>
Diffstat (limited to 'src/fmt_fp.c')
| -rw-r--r-- | src/fmt_fp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
