forked from len0rd/rockbox
Clean up places that use #if defined(CPU_ARM | CPU_COLDFIRE | CPU_MIPS)
Since that encompasses _all_ of our native targets in a post-archos world, either replace it with #if (CONFIG_PLATFORM & PLATFORM_NATIVE) or delete it altogher as appropriate. Change-Id: I9128a456e850d5c96a9e05806aad3acd923f90c5
This commit is contained in:
parent
15b4d22913
commit
2628155fc9
3 changed files with 8 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "os_types.h"
|
||||
#include <tlsf.h>
|
||||
|
||||
#if defined(CPU_ARM) || defined(CPU_COLDFIRE) || defined(CPU_MIPS)
|
||||
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
#include <setjmp.h>
|
||||
extern jmp_buf rb_jump_buf;
|
||||
#define LONGJMP(x) longjmp(rb_jump_buf, x)
|
||||
|
|
@ -31,7 +31,7 @@ void *ogg_malloc(size_t size)
|
|||
|
||||
if (x == NULL)
|
||||
LONGJMP(1);
|
||||
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ void *ogg_calloc(size_t nmemb, size_t size)
|
|||
|
||||
if (x == NULL)
|
||||
LONGJMP(1);
|
||||
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ void *ogg_realloc(void *ptr, size_t size)
|
|||
|
||||
if (x == NULL)
|
||||
LONGJMP(1);
|
||||
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue