summaryrefslogtreecommitdiffhomepage
path: root/src/fmt_fp.c
diff options
context:
space:
mode:
authorxuejianqing <[email protected]>2015-07-06 12:51:57 +0800
committerxuejianqing <[email protected]>2015-07-06 12:51:57 +0800
commit0b50b4a5005c3233b88b09f196034352ebdfc515 (patch)
treee86cb427f0016c6a71a98a33066613d701ca5b3b /src/fmt_fp.c
parente690e1e877f33cda815e4f8771208dda68def296 (diff)
downloadmruby-0b50b4a5005c3233b88b09f196034352ebdfc515.tar.gz
mruby-0b50b4a5005c3233b88b09f196034352ebdfc515.zip
fix androideabi cross-compile error : undefined reference to 'frexpl'
Diffstat (limited to 'src/fmt_fp.c')
-rw-r--r--src/fmt_fp.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fmt_fp.c b/src/fmt_fp.c
index a634edb34..b467435a3 100644
--- a/src/fmt_fp.c
+++ b/src/fmt_fp.c
@@ -90,12 +90,9 @@ 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)) && !defined(__linux__)
-static long double
-frexpl (long double x, int *eptr)
-{
- return frexp(x, eptr);
-}
+#if ((defined(__CYGWIN32__) || defined(__NetBSD__) || defined(mips)) && !defined(__linux__)) || defined(__android__)
+#undef frexpl
+#define frexpl frexp
#endif
static int