[uClibc-cvs] uClibc/include time.h, 1.8, 1.9 values.h, 1.1, 1.2 wchar.h, 1.4, 1.5
Manuel Novoa III
mjn3 at uclibc.org
Sat Sep 6 03:28:15 UTC 2003
Update of /var/cvs/uClibc/include
In directory winder:/tmp/cvs-serv22607/include
Modified Files:
time.h values.h wchar.h
Log Message:
Don't install floating point related headers, and wrap some previously
unwrapped prototypes, when float support is disabled.
Also don't install printf.h if glibc custom printf specifier support
is disabled.
Index: values.h
===================================================================
RCS file: /var/cvs/uClibc/include/values.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- values.h 11 Oct 2001 18:50:26 -0000 1.1
+++ values.h 6 Sep 2003 03:28:11 -0000 1.2
@@ -49,6 +49,7 @@
#define HIBITL MINLONG
+#ifdef __UCLIBC_HAS_FLOATS__
#include <float.h>
#define MAXDOUBLE DBL_MAX
@@ -59,6 +60,7 @@
#define FMINEXP FLT_MIN_EXP
#define DMAXEXP DBL_MAX_EXP
#define FMAXEXP FLT_MAX_EXP
+#endif /* __UCLIBC_HAS_FLOATS__ */
#ifdef __USE_MISC
Index: time.h
===================================================================
RCS file: /var/cvs/uClibc/include/time.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- time.h 24 Aug 2003 03:49:06 -0000 1.8
+++ time.h 6 Sep 2003 03:28:11 -0000 1.9
@@ -186,9 +186,11 @@
/* Return the current time and put it in *TIMER if TIMER is not NULL. */
extern time_t time (time_t *__timer) __THROW;
+#ifdef __UCLIBC_HAS_FLOATS__
/* Return the difference between TIME1 and TIME0. */
extern double difftime (time_t __time1, time_t __time0)
__THROW __attribute__ ((__const__));
+#endif /* __UCLIBC_HAS_FLOATS__ */
/* Return the `time_t' representation of TP and normalize TP. */
extern time_t mktime (struct tm *__tp) __THROW;
Index: wchar.h
===================================================================
RCS file: /var/cvs/uClibc/include/wchar.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- wchar.h 24 Aug 2003 03:49:06 -0000 1.4
+++ wchar.h 6 Sep 2003 03:28:11 -0000 1.5
@@ -394,6 +394,7 @@
__BEGIN_NAMESPACE_C99
+#ifdef __UCLIBC_HAS_FLOATS__
/* Convert initial portion of the wide string NPTR to `double'
representation. */
extern double wcstod (__const wchar_t *__restrict __nptr,
@@ -406,6 +407,7 @@
extern long double wcstold (__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr) __THROW;
#endif /* C99 */
+#endif /* __UCLIBC_HAS_FLOATS__ */
/* Convert initial portion of wide string NPTR to `long int'
@@ -505,6 +507,7 @@
int __base, __locale_t __loc)
__THROW;
+#ifdef __UCLIBC_HAS_FLOATS__
extern double wcstod_l (__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr, __locale_t __loc)
__THROW;
@@ -525,11 +528,13 @@
extern long double __wcstold_l (__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr,
__locale_t __loc) __THROW;
+#endif /* __UCLIBC_HAS_FLOATS__ */
#endif /* __UCLIBC_HAS_XLOCALE__ */
#endif /* GNU */
#if 0
+#ifdef __UCLIBC_HAS_FLOATS__
/* The internal entry points for `wcstoX' take an extra flag argument
saying whether or not to parse locale-dependent number grouping. */
extern double __wcstod_internal (__const wchar_t *__restrict __nptr,
@@ -541,6 +546,7 @@
extern long double __wcstold_internal (__const wchar_t *__restrict __nptr,
wchar_t **__restrict __endptr,
int __group) __THROW;
+#endif /* __UCLIBC_HAS_FLOATS__ */
#ifndef __wcstol_internal_defined
extern long int __wcstol_internal (__const wchar_t *__restrict __nptr,
More information about the uClibc-cvs
mailing list