diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-11-26 10:13:53 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-11-26 10:13:53 +0100 |
commit | 1628bb8995e102ea3cc2b5b6a43574a3bc1d0b6b (patch) | |
tree | 5118d405d731513d31d37dc3c8195df30af40d16 | |
parent | 10677229b978e422c70f7ea3d4fd6192aca83ac5 (diff) | |
download | newlib-1628bb8995e102ea3cc2b5b6a43574a3bc1d0b6b.zip newlib-1628bb8995e102ea3cc2b5b6a43574a3bc1d0b6b.tar.gz newlib-1628bb8995e102ea3cc2b5b6a43574a3bc1d0b6b.tar.bz2 |
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 <corinna@vinschen.de>
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/stdlib/strtodg.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 0cae5cf..35b8b21 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2015-11-26 Corinna Vinschen <corinna@vinschen.de> + + * libc/stdlib/strtodg.c: Add ifdef to check _HAVE_LONG_DOUBLE and + _LDBL_EQ_DBL. + 2015-11-24 Steve Ellcey <sellcey@imgtec.com> * libc/stdlib/strtorx.c: Fix ifdef to check _LDBL_EQ_DBL. diff --git a/newlib/libc/stdlib/strtodg.c b/newlib/libc/stdlib/strtodg.c index 594238a..a6b3290 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 */ |