diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-12-25 17:16:05 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-12-26 19:05:22 +0100 |
commit | b83d1ee3b41cfe8357836e2582104db2f3364cb0 (patch) | |
tree | 793ba32902f6c0a807e99ecdd5c01e0b6064d531 /libavutil/version.h | |
parent | 1716b4c7b888a00380b36d3a49f725e6a243ed18 (diff) | |
download | ffmpeg-b83d1ee3b41cfe8357836e2582104db2f3364cb0.tar.gz |
avutil: Move library version related macros to version.h
This is a more sensible place for these macros.
Diffstat (limited to 'libavutil/version.h')
-rw-r--r-- | libavutil/version.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavutil/version.h b/libavutil/version.h index 9e1f2d80ef..cf5cc2fb14 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -22,6 +22,23 @@ #include "avutil.h" /** + * @defgroup version_utils Library Version Macros + * + * Useful to check and match library version in order to maintain + * backward compatibility. + * + * @{ + */ + +#define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c) +#define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c +#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) + +/** + * @} + */ + +/** * @file * @ingroup lavu * Libavutil version macros |