summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-07-07 00:36:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-07-07 00:36:51 +0900
commit5daabc940767d658e9017cf02c5d0e96fc29f7f7 (patch)
treeae182ff575702051e2c8a8ba8f07083c1f96d44f /src
parentf1c6d6c8663272c0c2df39c65e68eda76c6b9327 (diff)
parent0b50b4a5005c3233b88b09f196034352ebdfc515 (diff)
downloadmruby-5daabc940767d658e9017cf02c5d0e96fc29f7f7.tar.gz
mruby-5daabc940767d658e9017cf02c5d0e96fc29f7f7.zip
Merge pull request #2876 from joans321/master
fix androideabi cross-compile error : undefined reference to 'frexpl'
Diffstat (limited to 'src')
-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