Selaa lähdekoodia

Protect *strto{d,f,ld}_l by UCLIBC_HAS_FLOATS

Peter S. Mazinger 18 vuotta sitten
vanhempi
commit
0f110a4288
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      include/stdlib.h

+ 4 - 0
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__ */