diff options
author | Måns Rullgård <mans@mansr.com> | 2008-02-19 22:50:28 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-02-19 22:50:28 +0000 |
commit | e97ac1e6f5dc3a8ba2e7dc7519a6f8fb356b8a4d (patch) | |
tree | 91704075078c36e174778d909394a3b1f3ce42f5 /libavutil | |
parent | cea9642014e833799eca40db03530ed0002f99d8 (diff) | |
download | ffmpeg-e97ac1e6f5dc3a8ba2e7dc7519a6f8fb356b8a4d.tar.gz |
Clean up lib* version definitions
Updating version numbers now requires changing only one place.
Originally committed as revision 12154 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/avutil.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h index 7e37026eb3..b08d98deb9 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -30,8 +30,16 @@ #define AV_STRINGIFY(s) AV_TOSTRING(s) #define AV_TOSTRING(s) #s -#define LIBAVUTIL_VERSION_INT ((49<<16)+(6<<8)+0) -#define LIBAVUTIL_VERSION 49.6.0 +#define AV_VERSION_INT_3(a, b, c) (a<<16 | b<<8 | c) +#define AV_VERSION_INT(x) AV_VERSION_INT_3(x) + +#define AV_VERSION_3(a, b, c) a ##.## b ##.## c +#define AV_VERSION(x) AV_VERSION_3(x) + +#define LIBAVUTIL_VERSION_TRIPLET 49,6,0 + +#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_TRIPLET) +#define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_TRIPLET) #define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT #define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION) |