SF.net SVN: mahogany: [7298] trunk/M/include/MModule.h
[email protected] Sat, 21 Jul 2007 15:54:34 -0700
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7298
http://svn.sourceforge.net/mahogany/?rev=7298&view=rev
Author: vadz
Date: 2007-07-21 15:54:33 -0700 (Sat, 21 Jul 2007)
Log Message:
-----------
make the object used in MMODULE_CLEANUP() in USE_MODULES_STATIC case static, otherwise we got duplicate symbols during link when this macro was used in more than one module
Modified Paths:
--------------
trunk/M/include/MModule.h
Modified: trunk/M/include/MModule.h
===================================================================
--- trunk/M/include/MModule.h 2007-07-12 22:39:56 UTC (rev 7297)
+++ trunk/M/include/MModule.h 2007-07-21 22:54:33 UTC (rev 7298)
@@ -345,7 +345,7 @@
} \
} gs_moduleInitializerFor##ClassName;
-# define MMODULE_CLEANUP(func) MRunFunctionAtExit moduleCleanup(func);
+# define MMODULE_CLEANUP(func) static MRunFunctionAtExit moduleCleanup(func);
#else // !USE_MODULES_STATIC
# define MMODULE_INITIALISE(ClassName, Name, Interface, Description, Version)
# define MMODULE_CLEANUP(func) \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/