From 3158e7d6749eeef6617ecb1592b7ac31ec17c926 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 15 Sep 2014 16:05:37 +0000 Subject: [PATCH] 2014-09-15 Jeff Johnston * libc/time/month_lengths.c: Fix to define __month_lengths. --- newlib/ChangeLog | 6 +++++- newlib/libc/time/month_lengths.c | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 117438b5b..9c9789160 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,6 +1,10 @@ +2014-09-15 Jeff Johnston + + * libc/time/month_lengths.c: Fix to define __month_lengths. + 2014-09-12 Jeff Johnston - * libc/time/tzcalc_limits.c: Fix __months_lengths reference. + * libc/time/tzcalc_limits.c: Fix __month_lengths reference. 2014-09-12 Jeff Johnston diff --git a/newlib/libc/time/month_lengths.c b/newlib/libc/time/month_lengths.c index 764e70042..2871802f0 100644 --- a/newlib/libc/time/month_lengths.c +++ b/newlib/libc/time/month_lengths.c @@ -1,14 +1,14 @@ /* * month_lengths.c * - * Array month_lengths[] is (indirectly) needed by tzset(), mktime(), gmtime() - * and localtime(). To break any dependencies, this array is moved to separate - * source file. + * Array __month_lengths[] is (indirectly) needed by tzset(), mktime(), + * gmtime() and localtime(). To break any dependencies, this array is moved to + * separate source file. */ #include "local.h" -_CONST int month_lengths[2][MONSPERYEAR] = { +_CONST int __month_lengths[2][MONSPERYEAR] = { {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} } ;