# HG changeset patch # User diego # Date 1267104056 0 # Node ID 688c1e685fe7bc35514ce0fd9cc80fce73f5d3b8 # Parent 7e2f58933cc157174557fb07c7baaed0b8e1dcd1 Unconditionally declare fast_memcpy() and mem2agpcpy(). This fixes the following warnings on non-x86 systems: libvo/aclib.c:162: warning: no previous prototype for 'fast_memcpy' libvo/aclib.c:196: warning: no previous prototype for 'mem2agpcpy' diff -r 7e2f58933cc1 -r 688c1e685fe7 libvo/fastmemcpy.h --- a/libvo/fastmemcpy.h Thu Feb 25 09:09:57 2010 +0000 +++ b/libvo/fastmemcpy.h Thu Feb 25 13:20:56 2010 +0000 @@ -22,14 +22,12 @@ #include "config.h" #include #include - -#if defined(CONFIG_FASTMEMCPY) && (HAVE_MMX || HAVE_MMX2 || HAVE_AMD3DNOW /* || HAVE_SSE || HAVE_SSE2 */) #include void * fast_memcpy(void * to, const void * from, size_t len); void * mem2agpcpy(void * to, const void * from, size_t len); -#else +#if ! defined(CONFIG_FASTMEMCPY) && ! (HAVE_MMX || HAVE_MMX2 || HAVE_AMD3DNOW /* || HAVE_SSE || HAVE_SSE2 */) #define mem2agpcpy(a,b,c) memcpy(a,b,c) #define fast_memcpy(a,b,c) memcpy(a,b,c) #endif