comparison src/events/SDL_events.c @ 1330:450721ad5436

It's now possible to build SDL without any C runtime at all on Windows, using Visual C++ 2005
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Feb 2006 08:28:51 +0000
parents c9b51268668f
children 3692456e7b0f
comparison
equal deleted inserted replaced
1329:bc67bbf87818 1330:450721ad5436
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 22
23 /* General event handling code for SDL */ 23 /* General event handling code for SDL */
24 24
25 #include <stdio.h>
26 #include <string.h>
27
28 #include "SDL.h" 25 #include "SDL.h"
29 #include "SDL_thread.h" 26 #include "SDL_thread.h"
30 #include "SDL_mutex.h" 27 #include "SDL_mutex.h"
31 #include "SDL_events.h" 28 #include "SDL_events.h"
29 #include "SDL_string.h"
32 #include "SDL_events_c.h" 30 #include "SDL_events_c.h"
33 #include "SDL_timer_c.h" 31 #include "SDL_timer_c.h"
34 #ifndef DISABLE_JOYSTICK 32 #ifndef DISABLE_JOYSTICK
35 #include "SDL_joystick_c.h" 33 #include "SDL_joystick_c.h"
36 #endif 34 #endif
175 } 173 }
176 SDL_EventLock.safe = 0; 174 SDL_EventLock.safe = 0;
177 175
178 /* The event thread will handle timers too */ 176 /* The event thread will handle timers too */
179 SDL_SetTimerThreaded(2); 177 SDL_SetTimerThreaded(2);
178 #if (defined(_WIN32) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
179 #undef SDL_CreateThread
180 SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL, NULL, NULL);
181 #else
180 SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL); 182 SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL);
183 #endif
181 if ( SDL_EventThread == NULL ) { 184 if ( SDL_EventThread == NULL ) {
182 return(-1); 185 return(-1);
183 } 186 }
184 } else { 187 } else {
185 event_thread = 0; 188 event_thread = 0;