diff options
Diffstat (limited to 'apps/codecs/lib/codeclib.h')
-rw-r--r-- | apps/codecs/lib/codeclib.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h index b46b44bbce..8852b47043 100644 --- a/apps/codecs/lib/codeclib.h +++ b/apps/codecs/lib/codeclib.h | |||
@@ -32,26 +32,11 @@ extern unsigned char* filebuf; // The rest of the MP3 buffer | |||
32 | 32 | ||
33 | /* Standard library functions that are used by the codecs follow here */ | 33 | /* Standard library functions that are used by the codecs follow here */ |
34 | 34 | ||
35 | /* Get these functions 'out of the way' of the standard functions. Not doing | ||
36 | * so confuses the cygwin linker, and maybe others. These functions need to | ||
37 | * be implemented elsewhere */ | ||
38 | #define malloc(x) codec_malloc(x) | ||
39 | #define calloc(x,y) codec_calloc(x,y) | ||
40 | #define realloc(x,y) codec_realloc(x,y) | ||
41 | #define free(x) codec_free(x) | ||
42 | |||
43 | void* codec_malloc(size_t size); | 35 | void* codec_malloc(size_t size); |
44 | void* codec_calloc(size_t nmemb, size_t size); | 36 | void* codec_calloc(size_t nmemb, size_t size); |
45 | void* codec_realloc(void* ptr, size_t size); | 37 | void* codec_realloc(void* ptr, size_t size); |
46 | void codec_free(void* ptr); | 38 | void codec_free(void* ptr); |
47 | 39 | ||
48 | #if !defined(SIMULATOR) | ||
49 | #define alloca __builtin_alloca | ||
50 | #else | ||
51 | #define alloca(x) codec_alloca(x) | ||
52 | void* codec_alloca(size_t size); | ||
53 | #endif | ||
54 | |||
55 | void *memcpy(void *dest, const void *src, size_t n); | 40 | void *memcpy(void *dest, const void *src, size_t n); |
56 | void *memset(void *s, int c, size_t n); | 41 | void *memset(void *s, int c, size_t n); |
57 | int memcmp(const void *s1, const void *s2, size_t n); | 42 | int memcmp(const void *s1, const void *s2, size_t n); |