forked from len0rd/rockbox
#if => #ifdef
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12368 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1916576728
commit
0c021deb05
5 changed files with 8 additions and 8 deletions
|
|
@ -92,7 +92,7 @@ static inline void set_le16( void* p, unsigned n )
|
|||
#define GET_LE16( addr ) get_le16( addr )
|
||||
#define SET_LE16( addr, data ) set_le16( addr, data )
|
||||
|
||||
#if ROCKBOX_LITTLE_ENDIAN
|
||||
#ifdef ROCKBOX_LITTLE_ENDIAN
|
||||
#define GET_LE16A( addr ) (*(uint16_t*) (addr))
|
||||
#define GET_LE16SA( addr ) (*( int16_t*) (addr))
|
||||
#define SET_LE16A( addr, data ) (void) (*(uint16_t*) (addr) = (data))
|
||||
|
|
|
|||
|
|
@ -1056,7 +1056,7 @@ static int get_next_index(const struct playlist_info* playlist, int steps,
|
|||
}
|
||||
|
||||
case REPEAT_ONE:
|
||||
#if (AB_REPEAT_ENABLE == 1)
|
||||
#ifdef AB_REPEAT_ENABLE
|
||||
case REPEAT_AB:
|
||||
#endif
|
||||
next_index = current_index;
|
||||
|
|
@ -2479,7 +2479,7 @@ int playlist_next(int steps)
|
|||
int index;
|
||||
|
||||
if ( (steps > 0)
|
||||
#if (AB_REPEAT_ENABLE == 1)
|
||||
#ifdef AB_REPEAT_ENABLE
|
||||
&& (global_settings.repeat_mode != REPEAT_AB)
|
||||
#endif
|
||||
&& (global_settings.repeat_mode != REPEAT_ONE) )
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ struct screen
|
|||
#if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && LCD_REMOTE_DEPTH > 1
|
||||
unsigned (*color_to_native)(unsigned color);
|
||||
#endif
|
||||
#if (LCD_DEPTH > 1) || (LCD_REMOTE_DEPTH > 1)
|
||||
#if (LCD_DEPTH > 1) || (defined(LCD_REMOTE_DEPTH) && (LCD_REMOTE_DEPTH > 1))
|
||||
unsigned (*get_background)(void);
|
||||
unsigned (*get_foreground)(void);
|
||||
void (*set_background)(unsigned background);
|
||||
|
|
|
|||
|
|
@ -663,7 +663,7 @@ bool quick_screen_quick(int button_enter)
|
|||
[REPEAT_ALL]={ STR(LANG_SYSFONT_REPEAT_ALL) },
|
||||
[REPEAT_ONE]={ STR(LANG_SYSFONT_REPEAT_ONE) },
|
||||
[REPEAT_SHUFFLE]={ STR(LANG_SYSFONT_SHUFFLE) },
|
||||
#if (AB_REPEAT_ENABLE == 1)
|
||||
#ifdef AB_REPEAT_ENABLE
|
||||
[REPEAT_AB]={ STR(LANG_SYSFONT_REPEAT_AB) }
|
||||
#endif
|
||||
};
|
||||
|
|
|
|||
|
|
@ -387,17 +387,17 @@ const struct settings_list settings[] = {
|
|||
SYSTEM_SETTING(NVRAM(4),resume_seed,-1),
|
||||
CHOICE_SETTING(0, repeat_mode, LANG_REPEAT, REPEAT_ALL, "repeat",
|
||||
"off,all,one,shuffle"
|
||||
#if (AB_REPEAT_ENABLE == 1)
|
||||
#ifdef AB_REPEAT_ENABLE
|
||||
",ab"
|
||||
#endif
|
||||
, NULL,
|
||||
#if (AB_REPEAT_ENABLE == 1)
|
||||
#ifdef AB_REPEAT_ENABLE
|
||||
5,
|
||||
#else
|
||||
4,
|
||||
#endif
|
||||
ID2P(LANG_OFF), ID2P(LANG_REPEAT_ALL), ID2P(LANG_REPEAT_ONE), ID2P(LANG_SHUFFLE)
|
||||
#if (AB_REPEAT_ENABLE == 1)
|
||||
#ifdef AB_REPEAT_ENABLE
|
||||
,ID2P(LANG_REPEAT_AB)
|
||||
#endif
|
||||
), /* CHOICE_SETTING( repeat_mode ) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue