ref: 2fc6c71d0964719e8f6727bbc7870e332dae7ecd
parent: 0c6c569cabe696ab8042ed4ac71823d9d3d8152b
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Mon May 15 11:00:56 EDT 2023
Avoid opus_alloc() conflicting with Opus
--- a/dnn/kiss_fft.h
+++ b/dnn/kiss_fft.h
@@ -34,7 +34,7 @@
#include "arch.h"
#include <stdlib.h>
-#define opus_alloc(x) malloc(x)
+#define lpcnet_alloc(x) malloc(x)
//#define opus_free(x) free(x)
#ifdef __cplusplus
@@ -46,7 +46,7 @@
# define kiss_fft_scalar __m128
#define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes)
#else
-#define KISS_FFT_MALLOC opus_alloc
+#define KISS_FFT_MALLOC lpcnet_alloc
#endif
#ifdef FIXED_POINT
--
⑨