summaryrefslogtreecommitdiffstats
path: root/apps/misc.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-16 23:47:03 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-16 23:47:03 +0000
commit2c7b127dd77564a8ca8c384d7d1abed441efe110 (patch)
tree95353f6db63c676890176f26fb9f452e8050d547 /apps/misc.h
parentc0351ca6338075461565b7ba14b01ba3cabb3f1e (diff)
downloadrockbox-2c7b127dd77564a8ca8c384d7d1abed441efe110.tar.gz
rockbox-2c7b127dd77564a8ca8c384d7d1abed441efe110.zip
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
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/misc.h b/apps/misc.h
index f127d6acbf..02a4bd822c 100644
--- a/apps/misc.h
+++ b/apps/misc.h
@@ -38,7 +38,7 @@ char *output_dyn_value(char *buf, int buf_size, int value,
* less than zero to number automatically. The final number used will also
* be returned in *num. If *num is >= 0 then *num will be incremented by
* one. */
-#if CONFIG_CODEC == SWCODEC && defined(HAVE_RECORDING) && !defined(CONFIG_RTC)
+#if CONFIG_CODEC == SWCODEC && defined(HAVE_RECORDING) && (CONFIG_RTC == 0)
/* this feature is needed by SWCODEC recording without a RTC to prevent
disk access when changing files */
#define IF_CNFN_NUM_(...) __VA_ARGS__
@@ -58,7 +58,7 @@ char *create_numbered_filename(char *buffer, const char *path,
*/
void format_time(char* buf, int buf_size, long t);
-#ifdef CONFIG_RTC
+#if CONFIG_RTC
/* Create a filename with a date+time part.
It is allowed that buffer and path point to the same memory location,
saving a strcpy(). Path must always be given without trailing slash.