[Ffmpeg-devel] [PATCH] [Visibility] libavutil

Diego Biurrun diego
Tue Sep 19 03:01:25 CEST 2006


On Tue, Sep 19, 2006 at 02:25:14AM +0200, Diego 'Flameeyes' Petten? wrote:
> Second patch to set visibility of public functions to default, this should 
> cover all of libavutil (libpostproc and libavutil were the easy one, mostly 
> without interdependencies in  non-installed headers).
> 
> --- libavutil/adler32.h	(revision 6289)
> +++ libavutil/adler32.h	(working copy)
> @@ -19,7 +19,15 @@
>  
> +#ifndef EXPORTED
> +# if __GNUC__ >= 4
> +#  define EXPORTED __attribute__((visibility("default")))
> +# else
> +#  define EXPORTED
> +# endif
> +#endif

Repeating this hunk in every file is unacceptable IMO.  It should be in
config.h or something similar.

Diego




More information about the ffmpeg-devel mailing list