]> git.sesse.net Git - ffmpeg/commitdiff
less preprocessor magic in version number macros
authorMåns Rullgård <mans@mansr.com>
Tue, 26 Feb 2008 20:38:02 +0000 (20:38 +0000)
committerMåns Rullgård <mans@mansr.com>
Tue, 26 Feb 2008 20:38:02 +0000 (20:38 +0000)
Originally committed as revision 26105 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.h

index c36d3d008f012f28f3330f19b63123f6d199dc22..afd3ff3754d0ed1f80c561b2d08b23b5fa49dd2a 100644 (file)
 
 #include "libavutil/avutil.h"
 
-#define LIBSWSCALE_VERSION_TRIPLET 0,5,0
-
-#define LIBSWSCALE_VERSION_INT  AV_VERSION_INT(LIBSWSCALE_VERSION_TRIPLET)
-#define LIBSWSCALE_VERSION      AV_VERSION(LIBSWSCALE_VERSION_TRIPLET)
+#define LIBSWSCALE_VERSION_MAJOR 0
+#define LIBSWSCALE_VERSION_MINOR 5
+#define LIBSWSCALE_VERSION_MICRO 0
+
+#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)