src/timer/riscos/SDL_systimer.c
changeset 1361 19418e4422cb
parent 1358 c71e05b4dc2e
child 1402 d910939febfa
     1.1 --- a/src/timer/riscos/SDL_systimer.c	Fri Feb 10 07:29:08 2006 +0000
     1.2 +++ b/src/timer/riscos/SDL_systimer.c	Thu Feb 16 10:11:48 2006 +0000
     1.3 @@ -28,10 +28,10 @@
     1.4  #include <errno.h>
     1.5  
     1.6  #include "SDL_timer.h"
     1.7 -#include "SDL_timer_c.h"
     1.8 +#include "../SDL_timer_c.h"
     1.9  
    1.10 -#ifdef DISABLE_THREADS
    1.11 -/* Timer start/reset time */
    1.12 +#if SDL_THREADS_DISABLED
    1.13 +/* Timer  SDL_arraysize(Timer ),start/reset time */
    1.14  static Uint32 timerStart;
    1.15  /* Timer running function */
    1.16  void RISCOS_CheckTimer();
    1.17 @@ -81,7 +81,7 @@
    1.18  void SDL_Delay (Uint32 ms)
    1.19  {
    1.20      Uint32 now,then,elapsed;
    1.21 -#ifndef DISABLE_THREADS
    1.22 +#if !SDL_THREADS_DISABLED
    1.23      int is_event_thread;
    1.24      if (riscos_using_threads)
    1.25      {
    1.26 @@ -101,7 +101,7 @@
    1.27  
    1.28  	do {
    1.29  		/* Do background tasks required while sleeping as we are not multithreaded */
    1.30 -#ifdef DISABLE_THREADS
    1.31 +#if SDL_THREADS_DISABLED
    1.32  		RISCOS_BackgroundTasks();
    1.33  #else
    1.34  		/* For threaded build only run background tasks in event thread */
    1.35 @@ -116,7 +116,7 @@
    1.36  			break;
    1.37  		}
    1.38  		ms -= elapsed;
    1.39 -#ifndef DISABLE_THREADS
    1.40 +#if !SDL_THREADS_DISABLED
    1.41              /* Need to yield to let other threads have a go */
    1.42              if (riscos_using_threads) pthread_yield();
    1.43  #endif
    1.44 @@ -124,7 +124,7 @@
    1.45  	} while ( 1 );
    1.46  }
    1.47  
    1.48 -#ifdef DISABLE_THREADS
    1.49 +#if SDL_THREADS_DISABLED
    1.50  
    1.51  /* Non-threaded version of timer */
    1.52  
    1.53 @@ -225,4 +225,4 @@
    1.54  	return;
    1.55  }
    1.56  
    1.57 -#endif /* DISABLE_THREADS */
    1.58 +#endif /* SDL_THREADS_DISABLED */