summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-05 00:21:29 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-05 00:21:29 +0000
commit0f110a42888ea9333be8f687e3c8ad4960aa4901 (patch)
tree114afe9c8cbb368949b223c90425bc276e715a1b /include
parent51b977d02ff289f9de814046ef511238697bd1a7 (diff)
Protect *strto{d,f,ld}_l by UCLIBC_HAS_FLOATS
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 069363e87..67e871379 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -270,6 +270,7 @@ extern unsigned long long int strtoull_l (__const char *__restrict __nptr,
int __base, __locale_t __loc)
__THROW __nonnull ((1, 4));
+#ifdef __UCLIBC_HAS_FLOATS__
extern double strtod_l (__const char *__restrict __nptr,
char **__restrict __endptr, __locale_t __loc)
__THROW __nonnull ((1, 3));
@@ -281,6 +282,7 @@ extern float strtof_l (__const char *__restrict __nptr,
extern long double strtold_l (__const char *__restrict __nptr,
char **__restrict __endptr,
__locale_t __loc) __THROW __nonnull ((1, 3));
+#endif /* __UCLIBC_HAS_FLOATS__ */
/* Internal names to support libstd++. */
extern long int __strtol_l (__const char *__restrict __nptr,
@@ -304,6 +306,7 @@ extern unsigned long long int __strtoull_l (__const char *__restrict __nptr,
int __base, __locale_t __loc)
__THROW __nonnull ((1, 4));
+#ifdef __UCLIBC_HAS_FLOATS__
extern double __strtod_l (__const char *__restrict __nptr,
char **__restrict __endptr, __locale_t __loc)
__THROW __nonnull ((1, 3));
@@ -315,6 +318,7 @@ extern float __strtof_l (__const char *__restrict __nptr,
extern long double __strtold_l (__const char *__restrict __nptr,
char **__restrict __endptr,
__locale_t __loc) __THROW __nonnull ((1, 3));
+#endif /* __UCLIBC_HAS_FLOATS__ */
#endif /* GNU */
#endif /* __UCLIBC_HAS_XLOCALE__ */