Fix some compiler warnings with -Wmissing-declarations

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1439 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-03-23 15:26:26 +00:00
parent f991274789
commit 5475361404
+14
View File
@@ -44,6 +44,13 @@ typedef void* ModHandle;
: 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 @@ typedef void* ModHandle;
: 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; } \