From 8414a44ad428eaac2b81295cb454160f26671b05 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Thu, 15 Dec 2011 21:49:48 +0000 Subject: Remove conditional added around set_day_of_week in r31301. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31305 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/timefuncs.c | 2 -- firmware/include/timefuncs.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index cffdb3951a..af4b596dd0 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c @@ -105,7 +105,6 @@ int set_time(const struct tm *tm) #endif /* RTC */ } -#if CONFIG_RTC void set_day_of_week(struct tm *tm) { int y=tm->tm_year+1900; @@ -116,5 +115,4 @@ void set_day_of_week(struct tm *tm) if(m == 0 || m == 1) y--; tm->tm_wday = (d + mo[m] + y + y/4 - y/100 + y/400) % 7; } -#endif /* CONFIG_RTC */ diff --git a/firmware/include/timefuncs.h b/firmware/include/timefuncs.h index 4c5f0fbb42..b7e9be53c6 100644 --- a/firmware/include/timefuncs.h +++ b/firmware/include/timefuncs.h @@ -30,8 +30,8 @@ struct tm *get_time(void); int set_time(const struct tm *tm); #if CONFIG_RTC bool valid_time(const struct tm *tm); -void set_day_of_week(struct tm *tm); #endif +void set_day_of_week(struct tm *tm); #endif /* _TIMEFUNCS_H_ */ -- cgit v1.2.3