summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/codeclib.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/lib/codeclib.h')
-rw-r--r--apps/codecs/lib/codeclib.h15
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
43void* codec_malloc(size_t size); 35void* codec_malloc(size_t size);
44void* codec_calloc(size_t nmemb, size_t size); 36void* codec_calloc(size_t nmemb, size_t size);
45void* codec_realloc(void* ptr, size_t size); 37void* codec_realloc(void* ptr, size_t size);
46void codec_free(void* ptr); 38void codec_free(void* ptr);
47 39
48#if !defined(SIMULATOR)
49#define alloca __builtin_alloca
50#else
51#define alloca(x) codec_alloca(x)
52void* codec_alloca(size_t size);
53#endif
54
55void *memcpy(void *dest, const void *src, size_t n); 40void *memcpy(void *dest, const void *src, size_t n);
56void *memset(void *s, int c, size_t n); 41void *memset(void *s, int c, size_t n);
57int memcmp(const void *s1, const void *s2, size_t n); 42int memcmp(const void *s1, const void *s2, size_t n);