summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-01-22 16:55:59 +0000
committerThomas Martitz <kugel@rockbox.org>2011-01-22 16:55:59 +0000
commitaed62058317e06c5ae9d156f8a5b361a37efbdd5 (patch)
tree979ae99515ea122bda1d05581cac88c1d41f7b0b
parent3ff2fb37c97ba513bf54187a6805aa7f63660857 (diff)
downloadrockbox-aed62058317e06c5ae9d156f8a5b361a37efbdd5.tar.gz
rockbox-aed62058317e06c5ae9d156f8a5b361a37efbdd5.zip
Declaration of 'pause' from chessclock is redeclared as different kind of symbol by android-ndk-r5
Flyspray: FS#11900 Author: Benjamin Brown git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29112 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/chessclock.c14
-rw-r--r--docs/CREDITS1
2 files changed, 8 insertions, 7 deletions
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c
index 1fd01d38f6..d50310f46f 100644
--- a/apps/plugins/chessclock.c
+++ b/apps/plugins/chessclock.c
@@ -372,7 +372,7 @@ static int chessclock_set_int(char* string,
372 372
373static char * show_time(int secs); 373static char * show_time(int secs);
374 374
375static bool pause; 375static bool chesspause;
376 376
377#define MAX_TIME 7200 377#define MAX_TIME 7200
378 378
@@ -436,7 +436,7 @@ enum plugin_status plugin_start(const void* parameter)
436 timer_holder[i].hidden=false; 436 timer_holder[i].hidden=false;
437 } 437 }
438 438
439 pause=true; /* We start paused */ 439 chesspause=true; /* We start paused */
440 440
441 nr=0; 441 nr=0;
442 do { 442 do {
@@ -511,7 +511,7 @@ static int run_timer(int nr)
511 long ticks=0; 511 long ticks=0;
512 bool round_time=false; 512 bool round_time=false;
513 513
514 show_pause_mode(pause); 514 show_pause_mode(chesspause);
515 515
516 if (settings.round_time*HZ<max_ticks) { 516 if (settings.round_time*HZ<max_ticks) {
517 max_ticks=settings.round_time*HZ; 517 max_ticks=settings.round_time*HZ;
@@ -533,7 +533,7 @@ static int run_timer(int nr)
533 ticks = max_ticks; 533 ticks = max_ticks;
534 } else { 534 } else {
535 now=*rb->current_tick; 535 now=*rb->current_tick;
536 if (!pause) { 536 if (!chesspause) {
537 ticks+=now-last_tick; 537 ticks+=now-last_tick;
538 if ((max_ticks-ticks)/HZ == 10) { 538 if ((max_ticks-ticks)/HZ == 10) {
539 /* Backlight on if 10 seconds remain */ 539 /* Backlight on if 10 seconds remain */
@@ -565,8 +565,8 @@ static int run_timer(int nr)
565 565
566 /* PLAY = Stop/Start toggle */ 566 /* PLAY = Stop/Start toggle */
567 case CHC_STARTSTOP: 567 case CHC_STARTSTOP:
568 pause=!pause; 568 chesspause=!chesspause;
569 show_pause_mode(pause); 569 show_pause_mode(chesspause);
570 break; 570 break;
571 571
572 /* LEFT = Reset timer */ 572 /* LEFT = Reset timer */
@@ -633,7 +633,7 @@ static int run_timer(int nr)
633 break; 633 break;
634 } 634 }
635 rb->lcd_clear_display(); 635 rb->lcd_clear_display();
636 show_pause_mode(pause); 636 show_pause_mode(chesspause);
637 rb->lcd_puts(0, FIRST_LINE, (unsigned char *)player_info); 637 rb->lcd_puts(0, FIRST_LINE, (unsigned char *)player_info);
638 } 638 }
639 break; 639 break;
diff --git a/docs/CREDITS b/docs/CREDITS
index 3d2b90e203..7c460564c5 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -581,6 +581,7 @@ Will Sowerbutts
581Gabriel Maia 581Gabriel Maia
582Robert Horn 582Robert Horn
583Ante Maretic 583Ante Maretic
584Benjamin Brown
584 585
585The libmad team 586The libmad team
586The wavpack team 587The wavpack team