From 1628bb8995e102ea3cc2b5b6a43574a3bc1d0b6b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 26 Nov 2015 10:13:53 +0100 Subject: Only build _strtodg_r on targets supporting a distinct long double type * libc/stdlib/strtodg.c: Add ifdef to check _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL. Signed-off-by: Corinna Vinschen --- newlib/libc/stdlib/strtodg.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newlib/libc') diff --git a/newlib/libc/stdlib/strtodg.c b/newlib/libc/stdlib/strtodg.c index 594238a9e..a6b32908b 100644 --- a/newlib/libc/stdlib/strtodg.c +++ b/newlib/libc/stdlib/strtodg.c @@ -39,6 +39,8 @@ THIS SOFTWARE. #include "locale.h" +#if defined (_HAVE_LONG_DOUBLE) && !defined (_LDBL_EQ_DBL) + #define USE_LOCALE static const int @@ -1141,3 +1143,5 @@ _strtodg_r } return irv; } + +#endif /* _HAVE_LONG_DOUBLE && !_LDBL_EQ_DBL */ -- cgit v1.2.3