diff 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
line wrap: on
line diff
--- a/src/events/SDL_events.c	Sat Feb 04 22:01:44 2006 +0000
+++ b/src/events/SDL_events.c	Mon Feb 06 08:28:51 2006 +0000
@@ -22,13 +22,11 @@
 
 /* General event handling code for SDL */
 
-#include <stdio.h>
-#include <string.h>
-
 #include "SDL.h"
 #include "SDL_thread.h"
 #include "SDL_mutex.h"
 #include "SDL_events.h"
+#include "SDL_string.h"
 #include "SDL_events_c.h"
 #include "SDL_timer_c.h"
 #ifndef DISABLE_JOYSTICK
@@ -177,7 +175,12 @@
 
 		/* The event thread will handle timers too */
 		SDL_SetTimerThreaded(2);
+#if (defined(_WIN32) && !defined(_WIN32_WCE)) && !defined(HAVE_LIBC)
+#undef SDL_CreateThread
+		SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL, NULL, NULL);
+#else
 		SDL_EventThread = SDL_CreateThread(SDL_GobbleEvents, NULL);
+#endif
 		if ( SDL_EventThread == NULL ) {
 			return(-1);
 		}