mirror of
https://github.com/znc/znc.git
synced 2026-08-09 18:32:55 +02:00
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:
@@ -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; } \
|
||||
|
||||
Reference in New Issue
Block a user