diff --git a/HTTPSock.cpp b/HTTPSock.cpp index 42dd4c90..810ca5e1 100644 --- a/HTTPSock.cpp +++ b/HTTPSock.cpp @@ -6,6 +6,8 @@ * by the Free Software Foundation. */ +#ifdef _MODULES + #include "HTTPSock.h" #include "znc.h" @@ -389,3 +391,5 @@ Csock* CHTTPSock::GetSockObj(const CString& sHost, unsigned short uPort) { return pSock; } + +#endif // _MODULES diff --git a/HTTPSock.h b/HTTPSock.h index 6eb3c6d8..17eec267 100644 --- a/HTTPSock.h +++ b/HTTPSock.h @@ -6,6 +6,8 @@ * by the Free Software Foundation. */ +#ifdef _MODULES + #ifndef _HTTPSOCK_H #define _HTTPSOCK_H @@ -86,3 +88,4 @@ protected: #endif // !_HTTPSOCK_H +#endif // _MODULES diff --git a/Template.cpp b/Template.cpp index b8ed01c4..4be69edc 100644 --- a/Template.cpp +++ b/Template.cpp @@ -6,6 +6,8 @@ * by the Free Software Foundation. */ +#ifdef _MODULES + #include "Template.h" #include "FileUtils.h" @@ -476,3 +478,5 @@ CString CTemplate::GetValue(const CString& sArgs) { return sRet; } + +#endif // _MODULES diff --git a/Template.h b/Template.h index c9d56d25..2fb3247a 100644 --- a/Template.h +++ b/Template.h @@ -6,6 +6,8 @@ * by the Free Software Foundation. */ +#ifdef _MODULES + #ifndef _TEMPLATE_H #define _TEMPLATE_H @@ -114,3 +116,4 @@ protected: #endif // !_TEMPLATE_H +#endif // _MODULES