mirror of https://git.ffmpeg.org/ffmpeg.git
Prettify PRINT_LIB_VERSION macro
Originally committed as revision 21477 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
58fe804a5a
commit
5116571dcd
|
@ -327,8 +327,11 @@ void print_error(const char *filename, int err)
|
||||||
#define PRINT_LIB_VERSION(outstream,libname,LIBNAME,indent) \
|
#define PRINT_LIB_VERSION(outstream,libname,LIBNAME,indent) \
|
||||||
if (CONFIG_##LIBNAME) { \
|
if (CONFIG_##LIBNAME) { \
|
||||||
version= libname##_version(); \
|
version= libname##_version(); \
|
||||||
fprintf(outstream, "%slib%-10s %2d.%2d.%2d / %2d.%2d.%2d\n", indent? " " : "", #libname, \
|
fprintf(outstream, "%slib%-10s %2d.%2d.%2d / %2d.%2d.%2d\n", \
|
||||||
LIB##LIBNAME##_VERSION_MAJOR, LIB##LIBNAME##_VERSION_MINOR, LIB##LIBNAME##_VERSION_MICRO, \
|
indent? " " : "", #libname, \
|
||||||
|
LIB##LIBNAME##_VERSION_MAJOR, \
|
||||||
|
LIB##LIBNAME##_VERSION_MINOR, \
|
||||||
|
LIB##LIBNAME##_VERSION_MICRO, \
|
||||||
version >> 16, version >> 8 & 0xff, version & 0xff); \
|
version >> 16, version >> 8 & 0xff, version & 0xff); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue