summaryrefslogtreecommitdiff
path: root/lib/util/time.c
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-01-07 00:40:09 +0100
committerKarolin Seeger <kseeger@samba.org>2010-05-17 09:50:11 +0200
commitc107d6410544fc813974680f7d0da94255884c6c (patch)
treeacf8b138f3d4f2011b8e8f6039f2198e507fe240 /lib/util/time.c
parentba710ca1f15fc275b9ca630370155958abc9fd86 (diff)
downloadsamba-c107d6410544fc813974680f7d0da94255884c6c.tar.gz
lib/util: move TIME_T_MIN/MAX defines into header file (cherry picked from commit 571ee54b791b93ad46e09ed563ef4a5582dcf0c8)
(cherry picked from commit 42d89dbd9407fcdef989387208dd8cae8472a6e8)
Diffstat (limited to 'lib/util/time.c')
-rw-r--r--lib/util/time.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/util/time.c b/lib/util/time.c
index eadafe4562b..571219b810b 100644
--- a/lib/util/time.c
+++ b/lib/util/time.c
@@ -27,11 +27,6 @@
* @brief time handling functions
*/
-#ifndef TIME_T_MIN
-/* we use 0 here, because (time_t)-1 means error */
-#define TIME_T_MIN 0
-#endif
-
#if (SIZEOF_LONG == 8)
#define TIME_FIXUP_CONSTANT_INT 11644473600L
#elif (SIZEOF_LONG_LONG == 8)
@@ -40,15 +35,6 @@
-/*
- * we use the INT32_MAX here as on 64 bit systems,
- * gmtime() fails with INT64_MAX
- */
-
-#ifndef TIME_T_MAX
-#define TIME_T_MAX MIN(INT32_MAX,_TYPE_MAXIMUM(time_t))
-#endif
-
/**
External access to time_t_min and time_t_max.
**/