summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libtremor/oggmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/oggmalloc.c')
-rw-r--r--apps/codecs/libtremor/oggmalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/codecs/libtremor/oggmalloc.c b/apps/codecs/libtremor/oggmalloc.c
index 3a5fecf910..dd7fd5b69d 100644
--- a/apps/codecs/libtremor/oggmalloc.c
+++ b/apps/codecs/libtremor/oggmalloc.c
@@ -60,6 +60,7 @@ void ogg_free(void* ptr)
tlsf_free(ptr);
}
+#ifdef TREMOR_USE_IRAM
/* Allocate IRAM buffer */
static unsigned char iram_buff[IRAM_IBSS_SIZE] IBSS_ATTR MEM_ALIGN_ATTR;
static size_t iram_remain;
@@ -82,3 +83,4 @@ void *iram_malloc(size_t size){
return x;
}
+#endif