src/events/SDL_events.c
changeset 1330 450721ad5436
parent 1312 c9b51268668f
child 1336 3692456e7b0f
     1.1 --- a/src/events/SDL_events.c	Sat Feb 04 22:01:44 2006 +0000
     1.2 +++ b/src/events/SDL_events.c	Mon Feb 06 08:28:51 2006 +0000
     1.3 @@ -22,13 +22,11 @@
     1.4  
     1.5  /* General event handling code for SDL */
     1.6  
     1.7 -#include <stdio.h>
     1.8 -#include <string.h>
     1.9 -
    1.10  #include "SDL.h"
    1.11  #include "SDL_thread.h"
    1.12  #include "SDL_mutex.h"
    1.13  #include "SDL_events.h"
    1.14 +#include "SDL_string.h"
    1.15  #include "SDL_events_c.h"
    1.16  #include "SDL_timer_c.h"
    1.17  #ifndef DISABLE_JOYSTICK
    1.18 @@ -177,7 +175,12 @@
    1.19  
    1.20  		/* The event thread will handle timers too */
    1.21  		SDL_SetTimerThreaded(2);
    1.22 +#if (defined(_WIN32) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
    1.23 +#undef SDL_CreateThread
    1.24 +		SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL, NULL, NULL);
    1.25 +#else
    1.26  		SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL);
    1.27 +#endif
    1.28  		if ( SDL_EventThread == NULL ) {
    1.29  			return(-1);
    1.30  		}