From 871c7bd34c48c74b2ac6df9a46c6b51f118f4b21 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Thu, 15 Dec 2011 21:38:23 +0000 Subject: Add conditionals around functions that are only needed when RTC is present. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31301 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/timefuncs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/include/timefuncs.h') diff --git a/firmware/include/timefuncs.h b/firmware/include/timefuncs.h index 86a41a5..4c5f0fb 100644 --- a/firmware/include/timefuncs.h +++ b/firmware/include/timefuncs.h @@ -28,8 +28,10 @@ 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 #endif /* _TIMEFUNCS_H_ */ -- cgit v1.1