Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time don't define statics we don't need



details:   https://anonhg.NetBSD.org/src/rev/283b149c2d0b
branches:  trunk
changeset: 339020:283b149c2d0b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jun 22 17:43:23 2015 +0000

description:
don't define statics we don't need

diffstat:

 lib/libc/time/private.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 9c5a48cb5c9a -r 283b149c2d0b lib/libc/time/private.h
--- a/lib/libc/time/private.h   Mon Jun 22 16:35:13 2015 +0000
+++ b/lib/libc/time/private.h   Mon Jun 22 17:43:23 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: private.h,v 1.41 2015/06/21 16:06:51 christos Exp $    */
+/*     $NetBSD: private.h,v 1.42 2015/06/22 17:43:23 christos Exp $    */
 
 #ifndef PRIVATE_H
 #define PRIVATE_H
@@ -501,9 +501,11 @@
 #define MINVAL(t, b)                                           \
   ((t) (TYPE_SIGNED(t) ? - TWOS_COMPLEMENT(t) - MAXVAL(t, b) : 0))
 
+#ifdef LOCALTIME_IMPLEMENTATION
 /* The minimum and maximum finite time values.  This assumes no padding.  */
 static time_t const time_t_min = MINVAL(time_t, TYPE_BIT(time_t));
 static time_t const time_t_max = MAXVAL(time_t, TYPE_BIT(time_t));
+#endif
 
 #ifndef INT_STRLEN_MAXIMUM
 /*



Home | Main Index | Thread Index | Old Index