[MPlayer-dev-eng] [PATCH] fix asm deps [RESENT]

Michael Niedermayer michaelni at gmx.at
Mon Mar 22 00:23:38 CET 2004


Hi

On Sunday 21 March 2004 23:59, Dirk Mueller wrote:
> On Sunday 21 March 2004 23:22, D Richard Felker III wrote:
> > gcc does NOT ignore attribute((used)). If it does, this is a bug and
> > you should report it to the gcc developers...
>
> Hmm, you're right, it doesn't. Here's the patch.
>
> Dirk
> Index: swscale_internal.h
> ===================================================================
> RCS file: /cvsroot/mplayer/main/postproc/swscale_internal.h,v
> retrieving revision 1.7
> diff -u -5 -d -p -r1.7 swscale_internal.h
> --- swscale_internal.h  3 Nov 2003 02:19:57 -0000       1.7
> +++ swscale_internal.h  21 Mar 2004 22:58:25 -0000
> @@ -136,6 +136,12 @@ typedef struct SwsContext{
>  //FIXME check init (where 0)
>  
>  SwsFunc yuv2rgb_get_func_ptr (SwsContext *c);
>  int yuv2rgb_c_init_tables (SwsContext *c, const int inv_table[4], int 
> fullRange, int brightness, int contrast, int saturation);
>  
> +#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >
> 0)
> +#    define attribute_used __attribute__((used))
hmm, IMHO this should be in config.h not postproc/swscale_internal.h

-- 
Michael
level[i]= get_vlc(); i+=get_vlc();		(violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en




More information about the MPlayer-dev-eng mailing list