summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-09-06 03:28:11 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-09-06 03:28:11 +0000
commit24b3f737bcf067a92e098e98b0684491400e4181 (patch)
treeeec0bceebcd4f7485826953f7a106fbade56a01c /include
parent1bb56f359252561d0f56d7fdbae7c697069797c0 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/time.h2
-rw-r--r--include/values.h2
-rw-r--r--include/wchar.h6
3 files changed, 10 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index d2ae86328..782913e4b 100644
--- a/include/time.h
+++ b/include/time.h
@@ -186,9 +186,11 @@ extern clock_t clock (void) __THROW;
/* 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;
diff --git a/include/values.h b/include/values.h
index c8b376f18..d8bd8b50a 100644
--- a/include/values.h
+++ b/include/values.h
@@ -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
diff --git a/include/wchar.h b/include/wchar.h
index 09ab741ae..ecb6c2cd9 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -394,6 +394,7 @@ extern int wcswidth (__const wchar_t *__s, size_t __n) __THROW;
__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 float wcstof (__const wchar_t *__restrict __nptr,
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 @@ extern unsigned long long int __wcstoull_l (__const wchar_t *__restrict __nptr,
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,
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 float __wcstof_internal (__const wchar_t *__restrict __nptr,
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,