less preprocessor magic in version number macros

Originally committed as revision 26105 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
Måns Rullgård 2008-02-26 20:38:02 +00:00
parent 800c289a66
commit e08e6bb6f2
1 changed files with 9 additions and 3 deletions

View File

@ -29,10 +29,16 @@
#include "libavutil/avutil.h"
#define LIBSWSCALE_VERSION_TRIPLET 0,5,0
#define LIBSWSCALE_VERSION_MAJOR 0
#define LIBSWSCALE_VERSION_MINOR 5
#define LIBSWSCALE_VERSION_MICRO 0
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_TRIPLET)
#define LIBSWSCALE_VERSION AV_VERSION(LIBSWSCALE_VERSION_TRIPLET)
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
LIBSWSCALE_VERSION_MINOR, \
LIBSWSCALE_VERSION_MICRO)
#define LIBSWSCALE_VERSION AV_VERSION(LIBSWSCALE_VERSION_MAJOR, \
LIBSWSCALE_VERSION_MINOR, \
LIBSWSCALE_VERSION_MICRO)
#define LIBSWSCALE_BUILD LIBSWSCALE_VERSION_INT
#define LIBSWSCALE_IDENT "SwS" AV_STRINGIFY(LIBSWSCALE_VERSION)