Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audiomem.c @ 1330:450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Feb 2006 08:28:51 +0000 |
parents | c9b51268668f |
children | 3692456e7b0f |
comparison
equal
deleted
inserted
replaced
1329:bc67bbf87818 | 1330:450721ad5436 |
---|---|
22 | 22 |
23 /* Functions to allocate audio buffer memory, shareable across threads | 23 /* Functions to allocate audio buffer memory, shareable across threads |
24 (necessary because SDL audio emulates threads with fork() | 24 (necessary because SDL audio emulates threads with fork() |
25 */ | 25 */ |
26 | 26 |
27 #include <stdlib.h> | |
28 #ifdef FORK_HACK | 27 #ifdef FORK_HACK |
29 #include <sys/types.h> | 28 #include <sys/types.h> |
30 #include <sys/ipc.h> | 29 #include <sys/ipc.h> |
31 #include <sys/shm.h> | 30 #include <sys/shm.h> |
32 #include <stddef.h> | 31 #include <stddef.h> |
33 #endif | 32 #endif |
34 | 33 |
35 #include "SDL_audiomem.h" | 34 #include "SDL_audiomem.h" |
35 #include "SDL_stdlib.h" | |
36 | 36 |
37 /* Allocate memory that will be shared between threads (freed on exit) */ | 37 /* Allocate memory that will be shared between threads (freed on exit) */ |
38 void *SDL_AllocAudioMem(int size) | 38 void *SDL_AllocAudioMem(int size) |
39 { | 39 { |
40 void *chunk; | 40 void *chunk; |