src/SDL.c
changeset 397 283d348cb624
parent 297 f6ffac90895c
child 543 522e5202014d
     1.1 --- a/src/SDL.c	Mon Jun 10 20:37:39 2002 +0000
     1.2 +++ b/src/SDL.c	Mon Jun 10 20:42:02 2002 +0000
     1.3 @@ -150,6 +150,12 @@
     1.4  
     1.5  int SDL_Init(Uint32 flags)
     1.6  {
     1.7 +#if !defined(DISABLE_THREADS) && defined(ENABLE_PTH)
     1.8 +	if (!pth_init()) {
     1.9 +		return -1;
    1.10 +	}
    1.11 +#endif
    1.12 +
    1.13  	/* Clear the error message */
    1.14  	SDL_ClearError();
    1.15  
    1.16 @@ -223,6 +229,10 @@
    1.17  
    1.18  	/* Uninstall any parachute signal handlers */
    1.19  	SDL_UninstallParachute();
    1.20 +
    1.21 +#if !defined(DISABLE_THREADS) && defined(ENABLE_PTH)
    1.22 +	pth_kill();
    1.23 +#endif
    1.24  }
    1.25  
    1.26  /* Return the library version number */