1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Fix FTBFS on i386 arches: multiple definition of `mac'
Author: Kamal Mostafa <kamal@whence.com>
--- soundmodem-0.20.orig/newqpsk/filter-i386.h
+++ soundmodem-0.20/newqpsk/filter-i386.h
@@ -1,7 +1,7 @@
#ifndef _FILTER_I386_H
#define _FILTER_I386_H
#define __HAVE_ARCH_MAC
-extern inline float mac(const float *a, const float *b, unsigned int size)
+static inline float mac(const float *a, const float *b, unsigned int size)
{
float f;
asm volatile (
--- soundmodem-0.20.orig/newqpsk/genfilt.c
+++ soundmodem-0.20/newqpsk/genfilt.c
@@ -18,7 +18,7 @@ int main(int argc, char **argv)
puts("#define _FILTER_I386_H");
puts("#define __HAVE_ARCH_MAC");
- puts("extern inline float mac(const float *a, const float *b, unsigned int size)");
+ puts("static inline float mac(const float *a, const float *b, unsigned int size)");
puts("{");
puts("\tfloat f;");
puts("\tasm volatile (");
|