compilation fix for test program
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 7 Aug 2004 14:15:55 +0000 (14:15 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 7 Aug 2004 14:15:55 +0000 (14:15 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@12967 b3059339-0415-0410-9bf9-f77b7e298cf2

liba52/Makefile
liba52/test.c

index ed5d1cf..80323bc 100644 (file)
@@ -20,7 +20,7 @@ $(LIBNAME):   $(OBJS)
        $(RANLIB) $(LIBNAME)
 
 test:        $(LIBNAME) test.c
-       $(CC) $(CFLAGS)  test.c ../cpudetect.c -o test ./liba52.a -lm
+       $(CC) $(CFLAGS)  test.c ../cpudetect.c -o test ../osdep/libosdep.a ./liba52.a -lm
 
 test2:        $(LIBNAME) test.c
        $(CC) $(CFLAGS) test.c -o test2 ../libac3/libac3.a ./liba52.a -lm
index 13fca5b..bc32eb4 100644 (file)
@@ -9,6 +9,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <inttypes.h>
+#include <string.h>
 
 #include "a52.h"
 #include "mm_accel.h"
@@ -21,6 +22,10 @@ static int buf_size=0;
 
 static int16_t out_buf[6*256*6];
 
+void mp_msg_c( int x, const char *format, ... ) // stub for cpudetect.c
+{
+}
+
 #ifdef TIMING
 static inline long long rdtsc()
 {