summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2010-02-26 17:30:08 +0100
committerJulien Cristau <jcristau@debian.org>2010-02-26 17:30:59 +0100
commitfae10ac6c613f6de847e152d615e6da421147139 (patch)
treec931aadde982ac9935333d6bbed85f7898347054
parentf3ef776415820c7da1728d1fe27dd56dc24e935f (diff)
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 <jcristau@debian.org>
-rw-r--r--src/vmmouse.c11
1 files changed, 4 insertions, 7 deletions
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,