Guard modinfo section against gcc.

This commit is contained in:
Philip Langdale
2007-09-10 21:17:12 -07:00
parent b20b4c2388
commit b1ca22c8bd

View File

@@ -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
/*****************************************************************************