shithub: opus

Download patch

ref: 90d174f5f5750a212e67a38cf980bef9e20e0105
parent: 4b9c620a8dbee1c2d164310ac8ace44fff97b162
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Thu May 18 13:23:32 EDT 2023

Fix test_opus_extensions.c

can't link woth libopus since it's already #including C files

--- a/Makefile.am
+++ b/Makefile.am
@@ -155,7 +155,7 @@
 tests_test_opus_encode_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
 
 tests_test_opus_extensions_SOURCES = tests/test_opus_extensions.c tests/test_opus_common.h
-tests_test_opus_extensions_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
+tests_test_opus_extensions_LDADD = $(NE10_LIBS) $(LIBM)
 
 tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
 tests_test_opus_decode_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
--- a/tests/test_opus_extensions.c
+++ b/tests/test_opus_extensions.c
@@ -37,6 +37,11 @@
 #include "../src/extensions.c"
 #include "test_opus_common.h"
 
+const char *opus_get_version_string(void)
+{
+   return "unknown";
+}
+
 void test_extensions_generate_success(void)
 {
    static const opus_extension_data ext[] = {
--