diff options
author | Reinhard Tartler <siretart@tauware.de> | 2010-06-15 13:31:27 +0000 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2010-06-15 13:31:27 +0000 |
commit | 522f1861ca4dedc021fa515c79bc5bdc9685c250 (patch) | |
tree | e70ddf0c02a107e93a51a8df7e95587ef1bae1ae /libavutil/internal.h | |
parent | 44f91788a5e39478509fc279445ff38fab770bc4 (diff) | |
download | ffmpeg-522f1861ca4dedc021fa515c79bc5bdc9685c250.tar.gz |
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.
backport r23611 by mru
Originally committed as revision 23613 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r-- | libavutil/internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h index 70cf2ffef9..e5dd8b9549 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -204,4 +204,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 */ |