From 0f110a42888ea9333be8f687e3c8ad4960aa4901 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 5 Nov 2005 00:21:29 +0000 Subject: Protect *strto{d,f,ld}_l by UCLIBC_HAS_FLOATS --- include/stdlib.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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__ */ -- cgit v1.2.3