freebsd-ports/multimedia/libfame/files/patch-mmx_one-gcc34
Pav Lucistnik aa4fbca3ff - Make the library actually usable on gcc 3.4 systems:
/usr/local/lib/libfame.so: undefined reference to `_mmx_one'

PR:		ports/74806
Submitted by:	Hendrik Scholz <hendrik@scholz.net>
Obtained from:	http://www.linuxfromscratch.org/blfs/downloads/svn/libfame-0.9.1-gcc34-1.patch
2004-12-08 19:29:09 +00:00

22 lines
713 B
Text

--- src/half_sse.h.orig Tue Dec 7 10:24:14 2004
+++ src/half_sse.h Tue Dec 7 10:24:29 2004
@@ -19,7 +19,7 @@
*/
/**************************** half-pixel interpolation ***********************/
-static short const _mmx_one[] = { 1, 1, 1, 1 };
+const _mmx_one[] = { 1, 1, 1, 1 };
static unsigned char const _mmx_one_byte[] = {1,1,1,1,1,1,1,1};
--- src/half_mmx.h.orig Tue Dec 7 10:23:21 2004
+++ src/half_mmx.h Tue Dec 7 10:23:32 2004
@@ -18,7 +18,7 @@
*/
/**************************** half-pixel interpolation ***********************/
-static short const _mmx_one[] = { 1, 1, 1, 1 };
+const _mmx_one[] = { 1, 1, 1, 1 };
static void inline mmx_interpolate(unsigned char **ref,
int pitch,