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 c36d3d0..afd3ff3 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)