SOURCES: libfame-gcc.patch - fix implicit prototypes and nonportab...
pluto
pluto at pld-linux.org
Sun Mar 12 11:42:26 CET 2006
Author: pluto Date: Sun Mar 12 10:42:26 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix implicit prototypes and nonportable ptrs calculations.
---- Files affected:
SOURCES:
libfame-gcc.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/libfame-gcc.patch
diff -u SOURCES/libfame-gcc.patch:1.3 SOURCES/libfame-gcc.patch:1.4
--- SOURCES/libfame-gcc.patch:1.3 Fri May 6 19:33:37 2005
+++ SOURCES/libfame-gcc.patch Sun Mar 12 11:42:21 2006
@@ -66,3 +66,35 @@
/* AA&N coefficients */
/* 2*cos(4pi/16) */
+--- libfame-0.9.1/src/fame_motion_pmvfast.c.orig 2002-10-05 14:44:47.000000000 +0200
++++ libfame-0.9.1/src/fame_motion_pmvfast.c 2006-03-12 11:36:49.612232750 +0100
+@@ -19,6 +19,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "fame.h"
+ #include "fame_malloc.h"
+ #include "fame_motion.h"
+--- libfame-0.9.1/src/fame_malloc.c.orig 2003-06-20 14:40:30.000000000 +0200
++++ libfame-0.9.1/src/fame_malloc.c 2006-03-12 11:42:21.400968250 +0100
+@@ -20,6 +20,7 @@
+
+ #define ALIGN 32
+
++#include <stddef.h>
+ #include <stdlib.h>
+
+ void* fame_malloc(size_t size)
+@@ -36,9 +37,9 @@
+ */
+
+ ptr = (unsigned char*) malloc(size+ALIGN);
+- aligned = (unsigned char*) (((unsigned int)ptr & (~(ALIGN-1))) + ALIGN );
++ aligned = (unsigned char*) (((ptrdiff_t)ptr & (~(ALIGN-1))) + ALIGN );
+ padding = aligned - 1;
+- *padding = (ALIGN-1) - ((unsigned int)ptr & (ALIGN-1));
++ *padding = (ALIGN-1) - ((ptrdiff_t)ptr & (ALIGN-1));
+
+ return ((void*)aligned);
+ }
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/libfame-gcc.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list