comparison src/audio/SDL_audiomem.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
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
50 chunk = shmat(semid, NULL, 0); 50 chunk = shmat(semid, NULL, 0);
51 51
52 /* Set the segment for deletion when it is detatched */ 52 /* Set the segment for deletion when it is detatched */
53 shmctl(semid, IPC_RMID, NULL); /* Delets semid if shmat() fails */ 53 shmctl(semid, IPC_RMID, NULL); /* Delets semid if shmat() fails */
54 #else 54 #else
55 chunk = malloc(size); 55 chunk = SDL_malloc(size);
56 #endif 56 #endif
57 return((void *)chunk); 57 return((void *)chunk);
58 } 58 }
59 59
60 void SDL_FreeAudioMem(void *chunk) 60 void SDL_FreeAudioMem(void *chunk)
61 { 61 {
62 #ifdef FORK_HACK 62 #ifdef FORK_HACK
63 shmdt(chunk); 63 shmdt(chunk);
64 #else 64 #else
65 free(chunk); 65 SDL_free(chunk);
66 #endif 66 #endif
67 } 67 }