shithub: opus-tools

Download patch

ref: 1a646c4a703128dddfc4c2809bdced36164e6de9
parent: 9288f9441bb801803b470c8ad89539ad7af0a980
author: Mark Harris <mark.hsj@gmail.com>
date: Sat Jul 21 08:24:49 EDT 2018

resample: clean up for upstream

--- a/src/resample.c
+++ b/src/resample.c
@@ -63,10 +63,12 @@
 
 #ifdef OUTSIDE_SPEEX
 #include <stdlib.h>
-static void *speex_alloc (int size) {return calloc(size,1);}
-static void *speex_realloc (void *ptr, int size) {return realloc(ptr, size);}
-static void speex_free (void *ptr) {free(ptr);}
+static void *speex_alloc(int size) {return calloc(size,1);}
+static void *speex_realloc(void *ptr, int size) {return realloc(ptr, size);}
+static void speex_free(void *ptr) {free(ptr);}
+#ifndef EXPORT
 #define EXPORT
+#endif
 #include "speex_resampler.h"
 #include "arch.h"
 #else /* OUTSIDE_SPEEX */
@@ -76,7 +78,6 @@
 #include "os_support.h"
 #endif /* OUTSIDE_SPEEX */
 
-#include "stack_alloc.h"
 #include <math.h>
 #include <limits.h>