src/SDL_error.c
changeset 1361 19418e4422cb
parent 1358 c71e05b4dc2e
child 1379 c0a74f199ecf
     1.1 --- a/src/SDL_error.c	Fri Feb 10 07:29:08 2006 +0000
     1.2 +++ b/src/SDL_error.c	Thu Feb 16 10:11:48 2006 +0000
     1.3 @@ -24,16 +24,15 @@
     1.4  
     1.5  #include "SDL_error.h"
     1.6  #include "SDL_error_c.h"
     1.7 -#ifndef DISABLE_THREADS
     1.8 -#include "SDL_thread_c.h"
     1.9 -#endif
    1.10  
    1.11 -#ifdef DISABLE_THREADS
    1.12 -/* The default (non-thread-safe) global error variable */
    1.13 +/* Routine to get the thread-specific error variable */
    1.14 +#if SDL_THREADS_DISABLED
    1.15 +/* The  SDL_arraysize(The ),default (non-thread-safe) global error variable */
    1.16  static SDL_error SDL_global_error;
    1.17 -
    1.18  #define SDL_GetErrBuf()	(&SDL_global_error)
    1.19 -#endif /* DISABLE_THREADS */
    1.20 +#else
    1.21 +extern SDL_error *SDL_GetErrBuf(void);
    1.22 +#endif /* SDL_THREADS_DISABLED */
    1.23  
    1.24  #define SDL_ERRBUFIZE	1024
    1.25