include/SDL_timer.h
changeset 337 9154ec9ca3d2
parent 297 f6ffac90895c
child 769 b8d311d90021
     1.1 --- a/include/SDL_timer.h	Wed Apr 10 17:12:32 2002 +0000
     1.2 +++ b/include/SDL_timer.h	Thu Apr 11 14:35:16 2002 +0000
     1.3 @@ -48,13 +48,13 @@
     1.4  /* Get the number of milliseconds since the SDL library initialization.
     1.5   * Note that this value wraps if the program runs for more than ~49 days.
     1.6   */ 
     1.7 -extern DECLSPEC Uint32 SDL_GetTicks(void);
     1.8 +extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void);
     1.9  
    1.10  /* Wait a specified number of milliseconds before returning */
    1.11 -extern DECLSPEC void SDL_Delay(Uint32 ms);
    1.12 +extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms);
    1.13  
    1.14  /* Function prototype for the timer callback function */
    1.15 -typedef Uint32 (*SDL_TimerCallback)(Uint32 interval);
    1.16 +typedef Uint32 (SDLCALL *SDL_TimerCallback)(Uint32 interval);
    1.17  
    1.18  /* Set a callback to run after the specified number of milliseconds has
    1.19   * elapsed. The callback function is passed the current timer interval
    1.20 @@ -82,7 +82,7 @@
    1.21   * should not use this function in multi-threaded applications as signals
    1.22   * to multi-threaded apps have undefined behavior in some implementations.
    1.23   */
    1.24 -extern DECLSPEC int SDL_SetTimer(Uint32 interval, SDL_TimerCallback callback);
    1.25 +extern DECLSPEC int SDLCALL SDL_SetTimer(Uint32 interval, SDL_TimerCallback callback);
    1.26  
    1.27  /* New timer API, supports multiple timers
    1.28   * Written by Stephane Peter <megastep@lokigames.com>
    1.29 @@ -94,7 +94,7 @@
    1.30   * passed in, the periodic alarm continues, otherwise a new alarm is
    1.31   * scheduled.  If the callback returns 0, the periodic alarm is cancelled.
    1.32   */
    1.33 -typedef Uint32 (*SDL_NewTimerCallback)(Uint32 interval, void *param);
    1.34 +typedef Uint32 (SDLCALL *SDL_NewTimerCallback)(Uint32 interval, void *param);
    1.35  
    1.36  /* Definition of the timer ID type */
    1.37  typedef struct _SDL_TimerID *SDL_TimerID;
    1.38 @@ -102,12 +102,12 @@
    1.39  /* Add a new timer to the pool of timers already running.
    1.40     Returns a timer ID, or NULL when an error occurs.
    1.41   */
    1.42 -extern DECLSPEC SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_NewTimerCallback callback, void *param);
    1.43 +extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval, SDL_NewTimerCallback callback, void *param);
    1.44  
    1.45  /* Remove one of the multiple timers knowing its ID.
    1.46   * Returns a boolean value indicating success.
    1.47   */
    1.48 -extern DECLSPEC SDL_bool SDL_RemoveTimer(SDL_TimerID t);
    1.49 +extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID t);
    1.50  
    1.51  /* Ends C function definitions when using C++ */
    1.52  #ifdef __cplusplus