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>
This commit is contained in:
parent
10677229b9
commit
1628bb8995
|
@ -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.
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue