svn commit: trunk/uClibc/include

psm at uclibc.org psm at uclibc.org
Sat Nov 5 00:21:31 UTC 2005


Author: psm
Date: 2005-11-04 16:21:29 -0800 (Fri, 04 Nov 2005)
New Revision: 12162

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

Modified:
   trunk/uClibc/include/stdlib.h


Changeset:
Modified: trunk/uClibc/include/stdlib.h
===================================================================
--- trunk/uClibc/include/stdlib.h	2005-11-05 00:09:50 UTC (rev 12161)
+++ trunk/uClibc/include/stdlib.h	2005-11-05 00:21:29 UTC (rev 12162)
@@ -270,6 +270,7 @@
 					  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 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 @@
 					  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 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__ */
 




More information about the uClibc-cvs mailing list