[FFmpeg-devel] [PATCH 2/5] Make bswap.h safe to install as public API
Michael Niedermayer
michaelni
Sat Jul 10 23:00:19 CEST 2010
On Sat, Jul 10, 2010 at 01:22:32PM +0100, Mans Rullgard wrote:
> ---
> libavutil/bswap.h | 10 ++++++++--
> 1 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/libavutil/bswap.h b/libavutil/bswap.h
> index f8c866a..303bcf3 100644
> --- a/libavutil/bswap.h
> +++ b/libavutil/bswap.h
> @@ -27,9 +27,13 @@
> #define AVUTIL_BSWAP_H
>
> #include <stdint.h>
> -#include "config.h"
> +#include "libavutil/avconfig.h"
> #include "attributes.h"
>
> +#ifdef HAVE_AV_CONFIG_H
> +
> +#include "config.h"
> +
> #if ARCH_ARM
> # include "arm/bswap.h"
> #elif ARCH_AVR32
> @@ -42,6 +46,8 @@
> # include "x86/bswap.h"
> #endif
>
> +#endif /* HAVE_AV_CONFIG_H */
i would prefer if the optimized code could be used too
but i guess thats a compromise for now i have to accept
with this projects,(mplayer at least) will still set HAVE_AV_CONFIG_H and
wont be able to use only external api.
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100710/e4c33ea5/attachment.pgp>
More information about the ffmpeg-devel
mailing list