summaryrefslogtreecommitdiff
path: root/include/time.h
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/time.h
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/time.h')
-rw-r--r--include/time.h2
1 files changed, 2 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;