shithub: opus

Download patch

ref: 2b5a2e7be9c08e70884b7d5673c80ac617827969
parent: d43d09587ae3233f89b6e06a31d21094e677aad2
author: Jean-Marc Valin <[email protected]>
date: Thu Jul 8 10:35:29 EDT 2010

Fix accidental change of celt_alloc() to non-inline

--- a/libcelt/os_support.h
+++ b/libcelt/os_support.h
@@ -45,7 +45,7 @@
 /** CELT wrapper for calloc(). To do your own dynamic allocation, all you need to do is replace this function, celt_realloc and celt_free 
     NOTE: celt_alloc needs to CLEAR THE MEMORY */
 #ifndef OVERRIDE_CELT_ALLOC
-static void *celt_alloc (int size)
+static inline void *celt_alloc (int size)
 {
    /* WARNING: this is not equivalent to malloc(). If you want to use malloc() 
       or your own allocator, YOU NEED TO CLEAR THE MEMORY ALLOCATED. Otherwise