Mercurial > sdl-ios-xcode
diff src/video/wincommon/SDL_sysevents.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | 450721ad5436 |
children | 604d73db6802 |
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysevents.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/wincommon/SDL_sysevents.c Tue Feb 07 06:59:48 2006 +0000 @@ -706,13 +706,13 @@ if ( name ) { #ifdef _WIN32_WCE /* WinCE uses the UNICODE version */ - int nLen = strlen(name)+1; - SDL_Appname = malloc(nLen*2); + int nLen = SDL_strlen(name)+1; + SDL_Appname = SDL_malloc(nLen*2); MultiByteToWideChar(CP_ACP, 0, name, -1, SDL_Appname, nLen); #else - int nLen = strlen(name)+1; - SDL_Appname = malloc(nLen); - strcpy(SDL_Appname, name); + int nLen = SDL_strlen(name)+1; + SDL_Appname = SDL_malloc(nLen); + SDL_strcpy(SDL_Appname, name); #endif /* _WIN32_WCE */ SDL_Appstyle = style; SDL_Instance = hInst ? hInst : SDL_GetModuleHandle(); @@ -783,7 +783,7 @@ { OSVERSIONINFO info; - memset(&info, 0, sizeof(info)); + SDL_memset(&info, 0, sizeof(info)); info.dwOSVersionInfoSize = sizeof(info); if (!GetVersionEx(&info)) { return 0; @@ -798,7 +798,7 @@ int cp = GetACP(); if (GetLocaleInfo(lcid, LOCALE_IDEFAULTANSICODEPAGE, buff, sizeof(buff))) { - cp = strtol(buff, NULL, 0); + cp = SDL_strtol(buff, NULL, 0); } return cp; }