diff src/video/wincommon/SDL_sysevents.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/video/wincommon/SDL_sysevents.c	Sat Feb 04 22:01:44 2006 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Mon Feb 06 08:28:51 2006 +0000
@@ -20,15 +20,15 @@
     slouken@libsdl.org
 */
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <windows.h>
+#include "SDL_windows.h"
 
-#include "SDL_getenv.h"
 #include "SDL_events.h"
 #include "SDL_video.h"
 #include "SDL_error.h"
 #include "SDL_syswm.h"
+#include "SDL_stdlib.h"
+#include "SDL_string.h"
+#include "SDL_getenv.h"
 #include "SDL_sysevents.h"
 #include "SDL_events_c.h"
 #include "SDL_sysvideo.h"
@@ -798,7 +798,7 @@
 	int	cp = GetACP();
 
 	if (GetLocaleInfo(lcid, LOCALE_IDEFAULTANSICODEPAGE, buff, sizeof(buff))) {
-		cp = atoi(buff);
+		cp = strtol(buff, NULL, 0);
 	}
 	return cp;
 }