Mercurial > sdl-ios-xcode
diff src/video/Xext/Xv/Xv.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 | d05306f0dc21 |
children | 604d73db6802 |
line wrap: on
line diff
--- a/src/video/Xext/Xv/Xv.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/Xext/Xv/Xv.c Tue Feb 07 06:59:48 2006 +0000 @@ -234,7 +234,7 @@ SyncHandle(); return(XvBadAlloc); } - (void)strncpy(name, u.string, size); + (void)SDL_strncpy(name, u.string, size); name[size] = '\0'; pa->name = name; @@ -386,7 +386,7 @@ SyncHandle(); return(XvBadAlloc); } - strncpy(name, u.string, size); + SDL_strncpy(name, u.string, size); name[size] = '\0'; pe->name = name; pe++; @@ -902,7 +902,7 @@ ret[i].id = Info.id; ret[i].type = Info.type; ret[i].byte_order = Info.byte_order; - memcpy(&(ret[i].guid[0]), &(Info.guid[0]), 16); + SDL_memcpy(&(ret[i].guid[0]), &(Info.guid[0]), 16); ret[i].bits_per_pixel = Info.bpp; ret[i].format = Info.format; ret[i].num_planes = Info.num_planes; @@ -919,7 +919,7 @@ ret[i].vert_y_period = Info.vert_y_period; ret[i].vert_u_period = Info.vert_u_period; ret[i].vert_v_period = Info.vert_v_period; - memcpy(&(ret[i].component_order[0]), &(Info.comp_order[0]), 32); + SDL_memcpy(&(ret[i].component_order[0]), &(Info.comp_order[0]), 32); ret[i].scanline_order = Info.scanline_order; (*num)++; }