From f6dc5163191a0e799a200fd022701f478fae1d66 Mon Sep 17 00:00:00 2001 From: Tarosa Date: Mon, 16 Mar 2015 18:34:08 +0900 Subject: I modified the undefined frexpl in cygwin of make --- src/fmt_fp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fmt_fp.c b/src/fmt_fp.c index cfbda570a..6a1c832ba 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -90,6 +90,12 @@ fmt_u(uint32_t x, char *s) typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)]; #endif +static long double +frexpl (long double x, int *eptr) +{ + return frexp(x, eptr); +} + static int fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t) { -- cgit v1.2.3 From 52f35b83e2b8760e493f4b492750fc212f044243 Mon Sep 17 00:00:00 2001 From: Tarosa Date: Mon, 16 Mar 2015 19:22:47 +0900 Subject: I have added the #ifdef __CYGWIN32__ to modify the fmt_fp.c --- src/fmt_fp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fmt_fp.c b/src/fmt_fp.c index 6a1c832ba..a94503e63 100644 --- a/src/fmt_fp.c +++ b/src/fmt_fp.c @@ -90,11 +90,13 @@ fmt_u(uint32_t x, char *s) typedef char compiler_defines_long_double_incorrectly[9-(int)sizeof(long double)]; #endif +#ifdef __CYGWIN32__ static long double frexpl (long double x, int *eptr) { return frexp(x, eptr); } +#endif static int fmt_fp(struct fmt_args *f, long double y, int w, int p, int fl, int t) -- cgit v1.2.3