# HG changeset patch # User mru # Date 1204058279 0 # Node ID 82b05580c4005b100eef71d729d0e25f9313e348 # Parent 9cd577ad9c0b5c2a320beca62fae32059d6ba017 less preprocessor magic in version number macros diff -r 9cd577ad9c0b -r 82b05580c400 avcodec.h --- a/avcodec.h Tue Feb 26 20:17:30 2008 +0000 +++ b/avcodec.h Tue Feb 26 20:37:59 2008 +0000 @@ -30,10 +30,16 @@ #include "libavutil/avutil.h" #include /* size_t */ -#define LIBAVCODEC_VERSION_TRIPLET 51,50,1 +#define LIBAVCODEC_VERSION_MAJOR 51 +#define LIBAVCODEC_VERSION_MINOR 50 +#define LIBAVCODEC_VERSION_MICRO 1 -#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_TRIPLET) -#define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_TRIPLET) +#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ + LIBAVCODEC_VERSION_MINOR, \ + LIBAVCODEC_VERSION_MICRO) +#define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_MAJOR, \ + LIBAVCODEC_VERSION_MINOR, \ + LIBAVCODEC_VERSION_MICRO) #define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)