diff options
Diffstat (limited to 'apps/codecs/lib/codeclib.h')
-rw-r--r-- | apps/codecs/lib/codeclib.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/codecs/lib/codeclib.h b/apps/codecs/lib/codeclib.h index 817d86a6a3..b7685ebbcb 100644 --- a/apps/codecs/lib/codeclib.h +++ b/apps/codecs/lib/codeclib.h | |||
@@ -22,9 +22,10 @@ | |||
22 | #ifndef __CODECLIB_H__ | 22 | #ifndef __CODECLIB_H__ |
23 | #define __CODECLIB_H__ | 23 | #define __CODECLIB_H__ |
24 | 24 | ||
25 | #include <inttypes.h> | ||
26 | #include <string.h> | ||
25 | #include "config.h" | 27 | #include "config.h" |
26 | #include "codecs.h" | 28 | #include "codecs.h" |
27 | #include <sys/types.h> | ||
28 | #include "mdct.h" | 29 | #include "mdct.h" |
29 | #include "fft.h" | 30 | #include "fft.h" |
30 | 31 | ||
@@ -44,6 +45,7 @@ extern unsigned char* filebuf; /* The rest of the MP3 buffer | |||
44 | #define calloc(x,y) codec_calloc(x,y) | 45 | #define calloc(x,y) codec_calloc(x,y) |
45 | #define realloc(x,y) codec_realloc(x,y) | 46 | #define realloc(x,y) codec_realloc(x,y) |
46 | #define free(x) codec_free(x) | 47 | #define free(x) codec_free(x) |
48 | #undef alloca | ||
47 | #define alloca(x) __builtin_alloca(x) | 49 | #define alloca(x) __builtin_alloca(x) |
48 | 50 | ||
49 | void* codec_malloc(size_t size); | 51 | void* codec_malloc(size_t size); |
@@ -59,7 +61,11 @@ void *memmove(void *s1, const void *s2, size_t n); | |||
59 | size_t strlen(const char *s); | 61 | size_t strlen(const char *s); |
60 | char *strcpy(char *dest, const char *src); | 62 | char *strcpy(char *dest, const char *src); |
61 | char *strcat(char *dest, const char *src); | 63 | char *strcat(char *dest, const char *src); |
62 | int strcmp(const char *, const char *); | 64 | |
65 | /* on some platforms strcmp() seems to be a tricky define which | ||
66 | * breaks if we write down strcmp's prototype */ | ||
67 | #undef strcmp | ||
68 | int strcmp(const char *s1, const char *s2); | ||
63 | 69 | ||
64 | void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); | 70 | void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); |
65 | 71 | ||