diff options
Diffstat (limited to 'lib/rbcodec/codecs/libtremor')
-rw-r--r-- | lib/rbcodec/codecs/libtremor/oggmalloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbcodec/codecs/libtremor/oggmalloc.c b/lib/rbcodec/codecs/libtremor/oggmalloc.c index 783e0f7240..31d88f191d 100644 --- a/lib/rbcodec/codecs/libtremor/oggmalloc.c +++ b/lib/rbcodec/codecs/libtremor/oggmalloc.c | |||
@@ -1,7 +1,7 @@ | |||
1 | #include "os_types.h" | 1 | #include "os_types.h" |
2 | #include <tlsf.h> | 2 | #include <tlsf.h> |
3 | 3 | ||
4 | #if defined(CPU_ARM) || defined(CPU_COLDFIRE) || defined(CPU_MIPS) | 4 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) |
5 | #include <setjmp.h> | 5 | #include <setjmp.h> |
6 | extern jmp_buf rb_jump_buf; | 6 | extern jmp_buf rb_jump_buf; |
7 | #define LONGJMP(x) longjmp(rb_jump_buf, x) | 7 | #define LONGJMP(x) longjmp(rb_jump_buf, x) |
@@ -31,7 +31,7 @@ void *ogg_malloc(size_t size) | |||
31 | 31 | ||
32 | if (x == NULL) | 32 | if (x == NULL) |
33 | LONGJMP(1); | 33 | LONGJMP(1); |
34 | 34 | ||
35 | return x; | 35 | return x; |
36 | } | 36 | } |
37 | 37 | ||
@@ -41,7 +41,7 @@ void *ogg_calloc(size_t nmemb, size_t size) | |||
41 | 41 | ||
42 | if (x == NULL) | 42 | if (x == NULL) |
43 | LONGJMP(1); | 43 | LONGJMP(1); |
44 | 44 | ||
45 | return x; | 45 | return x; |
46 | } | 46 | } |
47 | 47 | ||
@@ -51,7 +51,7 @@ void *ogg_realloc(void *ptr, size_t size) | |||
51 | 51 | ||
52 | if (x == NULL) | 52 | if (x == NULL) |
53 | LONGJMP(1); | 53 | LONGJMP(1); |
54 | 54 | ||
55 | return x; | 55 | return x; |
56 | } | 56 | } |
57 | 57 | ||