Mercurial > sdl-ios-xcode
diff src/timer/linux/SDL_systimer.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 | 9439c2f1da89 |
children | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/timer/linux/SDL_systimer.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/timer/linux/SDL_systimer.c Tue Feb 07 06:59:48 2006 +0000 @@ -256,7 +256,7 @@ struct sigaction action; /* Set the alarm handler (Linux specific) */ - memset(&action, 0, sizeof(action)); + SDL_memset(&action, 0, sizeof(action)); action.sa_handler = HandleAlarm; action.sa_flags = SA_RESTART; sigemptyset(&action.sa_mask); @@ -285,7 +285,7 @@ { struct itimerval timer; - memset(&timer, 0, (sizeof timer)); + SDL_memset(&timer, 0, (sizeof timer)); setitimer(ITIMER_REAL, &timer, NULL); }