summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@fido2.homeip.net>2007-09-10 21:17:12 -0700
committerPhilip Langdale <philipl@fido2.homeip.net>2007-09-10 21:17:12 -0700
commitb1ca22c8bdaa2450d98d5043b504d4a4fe412128 (patch)
tree6fa948f381cdabaacf73e576cc8e49a8ccd5fc05
parentb20b4c2388a19885b8d686bbc184d69bed5585d9 (diff)
Guard modinfo section against gcc.vmmouse-12_4_2
-rw-r--r--src/vmmouse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vmmouse.c b/src/vmmouse.c
index 10859b4..0919e3f 100644
--- a/src/vmmouse.c
+++ b/src/vmmouse.c
@@ -100,8 +100,10 @@
* As the driver's version is only {major, minor, patchlevel}, simply append an
* extra zero for the fourth digit.
*/
+#ifdef __GNUC__
const char vm_version[] __attribute__((section(".modinfo"),unused)) =
"version=" VMMOUSE_DRIVER_VERSION_STRING ".0";
+#endif
/*****************************************************************************