From 2628155fc9947dcf463938553f057c39ccc2227a Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 4 Mar 2021 08:59:17 -0500 Subject: 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 --- lib/rbcodec/codecs/libtremor/oggmalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rbcodec/codecs/libtremor/oggmalloc.c') 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 @@ #include "os_types.h" #include -#if defined(CPU_ARM) || defined(CPU_COLDFIRE) || defined(CPU_MIPS) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) #include 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; } -- cgit v1.2.3