forked from len0rd/rockbox
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
This commit is contained in:
parent
c0351ca633
commit
2c7b127dd7
21 changed files with 42 additions and 38 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue