summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-27 12:58:26 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-27 12:58:26 +0000
commit5116571dcd18fa4c288226bea6dec602c1cf0d84 (patch)
tree4642aefe797800ea2d4d45362c116707b49da1b4 /cmdutils.c
parent58fe804a5acb1bac20fff3618bfa4f846b36f707 (diff)
Prettify PRINT_LIB_VERSION macro
Originally committed as revision 21477 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/cmdutils.c b/cmdutils.c
index faf8559667..7978ed2cb2 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -324,12 +324,15 @@ void print_error(const char *filename, int err)
}
}
-#define PRINT_LIB_VERSION(outstream,libname,LIBNAME,indent) \
- if (CONFIG_##LIBNAME) { \
- version= libname##_version(); \
- fprintf(outstream, "%slib%-10s %2d.%2d.%2d / %2d.%2d.%2d\n", indent? " " : "", #libname, \
- LIB##LIBNAME##_VERSION_MAJOR, LIB##LIBNAME##_VERSION_MINOR, LIB##LIBNAME##_VERSION_MICRO, \
- version >> 16, version >> 8 & 0xff, version & 0xff); \
+#define PRINT_LIB_VERSION(outstream,libname,LIBNAME,indent) \
+ if (CONFIG_##LIBNAME) { \
+ version= libname##_version(); \
+ fprintf(outstream, "%slib%-10s %2d.%2d.%2d / %2d.%2d.%2d\n", \
+ indent? " " : "", #libname, \
+ LIB##LIBNAME##_VERSION_MAJOR, \
+ LIB##LIBNAME##_VERSION_MINOR, \
+ LIB##LIBNAME##_VERSION_MICRO, \
+ version >> 16, version >> 8 & 0xff, version & 0xff); \
}
static void print_all_lib_versions(FILE* outstream, int indent)