aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-12-25 17:16:05 +0100
committerDiego Biurrun <diego@biurrun.de>2013-12-26 19:05:22 +0100
commitb83d1ee3b41cfe8357836e2582104db2f3364cb0 (patch)
tree793ba32902f6c0a807e99ecdd5c01e0b6064d531
parent1716b4c7b888a00380b36d3a49f725e6a243ed18 (diff)
downloadffmpeg-b83d1ee3b41cfe8357836e2582104db2f3364cb0.tar.gz
avutil: Move library version related macros to version.h
This is a more sensible place for these macros.
-rw-r--r--libavcodec/version.h2
-rw-r--r--libavdevice/version.h2
-rw-r--r--libavfilter/version.h2
-rw-r--r--libavformat/version.h2
-rw-r--r--libavresample/version.h2
-rw-r--r--libavutil/avutil.h17
-rw-r--r--libavutil/utils.c2
-rw-r--r--libavutil/version.h17
-rw-r--r--libswscale/version.h2
9 files changed, 26 insertions, 22 deletions
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 9a43e82d6f..73c786dc04 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -26,6 +26,8 @@
* Libavcodec version macros.
*/
+#include "libavutil/version.h"
+
#define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR 31
#define LIBAVCODEC_VERSION_MICRO 0
diff --git a/libavdevice/version.h b/libavdevice/version.h
index 9731606adc..487b4c0046 100644
--- a/libavdevice/version.h
+++ b/libavdevice/version.h
@@ -25,7 +25,7 @@
* Libavdevice version macros
*/
-#include "libavutil/avutil.h"
+#include "libavutil/version.h"
#define LIBAVDEVICE_VERSION_MAJOR 54
#define LIBAVDEVICE_VERSION_MINOR 0
diff --git a/libavfilter/version.h b/libavfilter/version.h
index 9f00ffeaf5..f41114b86d 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -27,7 +27,7 @@
* Libavfilter version macros
*/
-#include "libavutil/avutil.h"
+#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 4
#define LIBAVFILTER_VERSION_MINOR 0
diff --git a/libavformat/version.h b/libavformat/version.h
index 23a9d67a91..a170c06358 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -27,7 +27,7 @@
* Libavformat version macros
*/
-#include "libavutil/avutil.h"
+#include "libavutil/version.h"
#define LIBAVFORMAT_VERSION_MAJOR 55
#define LIBAVFORMAT_VERSION_MINOR 10
diff --git a/libavresample/version.h b/libavresample/version.h
index 3cc4441d86..fce5770c62 100644
--- a/libavresample/version.h
+++ b/libavresample/version.h
@@ -25,6 +25,8 @@
* Libavresample version macros.
*/
+#include "libavutil/version.h"
+
#define LIBAVRESAMPLE_VERSION_MAJOR 1
#define LIBAVRESAMPLE_VERSION_MINOR 1
#define LIBAVRESAMPLE_VERSION_MICRO 0
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index 782284d046..928a0146a1 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -168,23 +168,6 @@
*/
/**
- * @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)
-
-/**
- * @}
- */
-
-/**
* @addtogroup lavu_ver
* @{
*/
diff --git a/libavutil/utils.c b/libavutil/utils.c
index 9b18c97908..2bb27de2b1 100644
--- a/libavutil/utils.c
+++ b/libavutil/utils.c
@@ -17,7 +17,7 @@
*/
#include "config.h"
-#include "avutil.h"
+#include "version.h"
/**
* @file
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
diff --git a/libswscale/version.h b/libswscale/version.h
index 54836739c0..0f32c7ab03 100644
--- a/libswscale/version.h
+++ b/libswscale/version.h
@@ -24,7 +24,7 @@
* swscale version macros
*/
-#include "libavutil/avutil.h"
+#include "libavutil/version.h"
#define LIBSWSCALE_VERSION_MAJOR 2
#define LIBSWSCALE_VERSION_MINOR 1