From 2c7b127dd77564a8ca8c384d7d1abed441efe110 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 16 Mar 2007 23:47:03 +0000 Subject: Set CONFIG_RTC to 0 for non-RTC targets, and check with #if to profit from -Wundef. No code change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12811 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/fat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/drivers') diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index e3e1a755cb..142d750bde 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -943,7 +943,7 @@ static void fat_time(unsigned short* date, unsigned short* time, unsigned short* tenth ) { -#ifdef CONFIG_RTC +#if CONFIG_RTC struct tm* tm = get_time(); if (date) @@ -1506,7 +1506,7 @@ static int update_short_entry( struct fat_file* file, long size, int attr ) *sizeptr = htole32(size); { -#ifdef CONFIG_RTC +#if CONFIG_RTC unsigned short time = 0; unsigned short date = 0; #else -- cgit v1.2.3