From fae10ac6c613f6de847e152d615e6da421147139 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Fri, 26 Feb 2010 17:30:08 +0100 Subject: vmmouse: don't hardcode the module version in the source XORG_RELEASE_VERSION gives us that info from configure.ac, let's use it. Signed-off-by: Julien Cristau --- src/vmmouse.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/vmmouse.c') diff --git a/src/vmmouse.c b/src/vmmouse.c index 1f4774a..0394fb8 100644 --- a/src/vmmouse.c +++ b/src/vmmouse.c @@ -97,14 +97,11 @@ /* * Version constants */ -#define VMMOUSE_MAJOR_VERSION 12 -#define VMMOUSE_MINOR_VERSION 6 -#define VMMOUSE_PATCHLEVEL 5 #define VMMOUSE_DRIVER_VERSION \ - (VMMOUSE_MAJOR_VERSION * 65536 + VMMOUSE_MINOR_VERSION * 256 + VMMOUSE_PATCHLEVEL) + (PACKAGE_VERSION_MAJOR * 65536 + PACKAGE_VERSION_MINOR * 256 + PACKAGE_VERSION_PATCHLEVEL) #define VMMOUSE_DRIVER_VERSION_STRING \ - VMW_STRING(VMMOUSE_MAJOR_VERSION) "." VMW_STRING(VMMOUSE_MINOR_VERSION) \ - "." VMW_STRING(VMMOUSE_PATCHLEVEL) + VMW_STRING(PACKAGE_VERSION_MAJOR) "." VMW_STRING(PACKAGE_VERSION_MINOR) \ + "." VMW_STRING(PACKAGE_VERSION_PATCHLEVEL) /* * Standard four digit version string expected by VMware Tools installer. @@ -1217,7 +1214,7 @@ static XF86ModuleVersionInfo VMMouseVersionRec = { MODINFOSTRING1, MODINFOSTRING2, XORG_VERSION_CURRENT, - VMMOUSE_MAJOR_VERSION, VMMOUSE_MINOR_VERSION, VMMOUSE_PATCHLEVEL, + PACKAGE_VERSION_MAJOR, PACKAGE_VERSION_MINOR, PACKAGE_VERSION_PATCHLEVEL, ABI_CLASS_XINPUT, ABI_XINPUT_VERSION, MOD_CLASS_XINPUT, -- cgit v1.2.3