From: <ps...@us...> - 2009-03-23 15:26:29
|
Revision: 1439 http://znc.svn.sourceforge.net/znc/?rev=1439&view=rev Author: psychon Date: 2009-03-23 15:26:26 +0000 (Mon, 23 Mar 2009) Log Message: ----------- Fix some compiler warnings with -Wmissing-declarations Modified Paths: -------------- trunk/Modules.h Modified: trunk/Modules.h =================================================================== --- trunk/Modules.h 2009-03-22 19:05:34 UTC (rev 1438) +++ trunk/Modules.h 2009-03-23 15:26:26 UTC (rev 1439) @@ -44,6 +44,13 @@ : CModule(pDLL, pUser, sModName, sModPath) #define MODULEDEFS(CLASS, DESCRIPTION) \ extern "C" { \ + /* First the definitions to shut up some compiler warnings */ \ + CString ZNCModDescription(); \ + bool ZNCModGlobal(); \ + double ZNCModVersion(); \ + CModule* ZNCModLoad(ModHandle p, CUser* pUser, const CString& sModName, \ + const CString& sModPath); \ + void ZNCModUnload(CModule* pMod); \ CString ZNCModDescription() { return DESCRIPTION; } \ bool ZNCModGlobal() { return false; } \ double ZNCModVersion() { return VERSION; } \ @@ -60,6 +67,13 @@ : CGlobalModule(pDLL, sModName, sModPath) #define GLOBALMODULEDEFS(CLASS, DESCRIPTION) \ extern "C" { \ + /* First the definitions to shut up some compiler warnings */ \ + CString ZNCModDescription(); \ + bool ZNCModGlobal(); \ + double ZNCModVersion(); \ + CGlobalModule* ZNCModLoad(ModHandle p, const CString& sModName, \ + const CString& sModPath); \ + void ZNCModUnload(CGlobalModule* pMod); \ CString ZNCModDescription() { return DESCRIPTION; } \ bool ZNCModGlobal() { return true; } \ double ZNCModVersion() { return VERSION; } \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |