From b1ca22c8bdaa2450d98d5043b504d4a4fe412128 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Mon, 10 Sep 2007 21:17:12 -0700 Subject: Guard modinfo section against gcc. --- src/vmmouse.c | 2 ++ 1 file changed, 2 insertions(+) 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 /***************************************************************************** -- cgit v1.2.3