From b462d13262f1a1d88c08981a742355f7c99c1959 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Tue, 15 Jun 2010 13:26:52 +0000 Subject: Add compatibility wrappers for functions moved from lavf to lavc When symbol versioning is enabled, moving symbols from one library to another breaks binary compatibility. This adds wrappers with the old version tag for the av_*packet functions recently moved to lavc. Originally committed as revision 23611 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/internal.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libavutil') diff --git a/libavutil/internal.h b/libavutil/internal.h index 2faafc9af1..2d744dfd4b 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -196,4 +196,15 @@ # define NULL_IF_CONFIG_SMALL(x) x #endif +#if HAVE_SYMVER_ASM_LABEL +# define FF_SYMVER(type, name, args, ver) \ + type ff_##name args __asm__ (#name "@" ver); \ + type ff_##name args +#elif HAVE_SYMVER_GNU_ASM +# define FF_SYMVER(type, name, args, ver) \ + __asm__ (".symver ff_" #name "," #name "@" ver); \ + type ff_##name args; \ + type ff_##name args +#endif + #endif /* AVUTIL_INTERNAL_H */ -- cgit v1.2.3