use #ifdef x instead of #if defined(x)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9581 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Christian Gmeiner 2006-04-09 15:00:30 +00:00
parent eb7d4f88ea
commit a91b794cb2
6 changed files with 11 additions and 11 deletions

View file

@ -784,7 +784,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb = api;
(void)parameter;
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(true);
#endif
@ -853,7 +853,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->splash(HZ, true, "Bye");
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif

View file

@ -299,7 +299,7 @@ void cleanup(void *parameter)
{
(void)parameter;
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif
#ifndef HAVE_LCD_COLOR
@ -338,7 +338,7 @@ int main(void)
}
#endif
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(true);
#endif
#ifndef HAVE_LCD_COLOR

View file

@ -190,7 +190,7 @@ int main(void)
rb->lcd_puts(0, 0, pbuf);
rb->lcd_update();
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(true);
#endif
gray_show(true); /* switch on greyscale overlay */
@ -252,7 +252,7 @@ int main(void)
time / 100, time % 100);
rb->lcd_puts(0, 0, pbuf);
gray_deferred_lcd_update(); /* schedule an lcd_update() */
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif

View file

@ -2453,7 +2453,7 @@ struct t_disp* get_image(struct jpeg* p_jpg, int ds)
/* the actual decoding */
time = *rb->current_tick;
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(true);
status = jpeg_decode(p_jpg, p_disp->bitmap, ds, cb_progess);
rb->cpu_boost(false);

View file

@ -491,7 +491,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
/* main loop */
while (true) {
if (redraw > REDRAW_NONE) {
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(true);
#endif
if (redraw == REDRAW_FULL) {
@ -504,7 +504,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
else
calc_mandelbrot_low_prec();
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif
px_min = 0;

View file

@ -71,7 +71,7 @@ void emu_run(void)
vid_begin();
lcd_begin();
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(true);
#endif
while(!shut)
@ -123,7 +123,7 @@ void emu_run(void)
}
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);
#endif
}