Files
tubestation/media/libspeex_resampler/01_outside-speex.patch
serge-sans-paille 6aff401514 Bug 1842193 - Vendor libspeex_resampler using mach vendor r=padenot
Renames patches to force ordering.

simd-detect-runtime.patch was not applying cleanly, so slightly update
its context. No impact on the final source.

Differential Revision: https://phabricator.services.mozilla.com/D182993
2023-07-07 13:34:56 +00:00

31 lines
947 B
Diff

diff --git a/src/speex_resampler.h b/src/speex_resampler.h
--- a/src/speex_resampler.h
+++ b/src/speex_resampler.h
@@ -34,24 +34,25 @@
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef SPEEX_RESAMPLER_H
#define SPEEX_RESAMPLER_H
-#ifdef OUTSIDE_SPEEX
+#if 1 /* OUTSIDE_SPEEX */
/********* WARNING: MENTAL SANITY ENDS HERE *************/
/* If the resampler is defined outside of Speex, we change the symbol names so that
there won't be any clash if linking with Speex later on. */
/* #define RANDOM_PREFIX your software name here */
+#define RANDOM_PREFIX moz_speex
#ifndef RANDOM_PREFIX
#error "Please define RANDOM_PREFIX (above) to something specific to your project to prevent symbol name clashes"
#endif
#define CAT_PREFIX2(a,b) a ## b
#define CAT_PREFIX(a,b) CAT_PREFIX2(a, b)
#define speex_resampler_init CAT_PREFIX(RANDOM_PREFIX,_resampler_init)