Mercurial > sdl-ios-xcode
diff src/video/ipod/SDL_ipodvideo.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 | af8b0f9ac2f4 |
children | 604d73db6802 |
line wrap: on
line diff
--- a/src/video/ipod/SDL_ipodvideo.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/ipod/SDL_ipodvideo.c Tue Feb 07 06:59:48 2006 +0000 @@ -65,7 +65,7 @@ if ((file = fopen("/proc/cpuinfo", "r")) != NULL) { while (fgets(cpuinfo, sizeof(cpuinfo), file) != NULL) - if (strncmp(cpuinfo, "Revision", 8) == 0) + if (SDL_strncmp(cpuinfo, "Revision", 8) == 0) break; fclose(file); } @@ -73,7 +73,7 @@ for (; isspace(cpuinfo[i]); i++); ptr = cpuinfo + i + 2; - return strtol(ptr, NULL, 10); + return SDL_strtol(ptr, NULL, 10); } static int iPod_Available()