Added #ifdefs's to fix bugs when compiling without messaging or file-system support.
This commit is contained in:
parent
f31b224aa0
commit
835cb4a8ed
@ -40,16 +40,24 @@ namespace posix {
|
|||||||
|
|
||||||
|
|
||||||
posixHandler::posixHandler()
|
posixHandler::posixHandler()
|
||||||
: m_socketFactory(new posixSocketFactory()),
|
|
||||||
m_fileSysFactory(new posixFileSystemFactory())
|
|
||||||
{
|
{
|
||||||
|
#if VMIME_HAVE_MESSAGING_FEATURES
|
||||||
|
m_socketFactory = new posixSocketFactory();
|
||||||
|
#endif
|
||||||
|
#if VMIME_HAVE_FILESYSTEM_FEATURES
|
||||||
|
m_fileSysFactory = new posixFileSystemFactory();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
posixHandler::~posixHandler()
|
posixHandler::~posixHandler()
|
||||||
{
|
{
|
||||||
|
#if VMIME_HAVE_MESSAGING_FEATURES
|
||||||
delete (m_socketFactory);
|
delete (m_socketFactory);
|
||||||
|
#endif
|
||||||
|
#if VMIME_HAVE_FILESYSTEM_FEATURES
|
||||||
delete (m_fileSysFactory);
|
delete (m_fileSysFactory);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -69,8 +69,13 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
#if VMIME_HAVE_MESSAGING_FEATURES
|
||||||
posixSocketFactory* m_socketFactory;
|
posixSocketFactory* m_socketFactory;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if VMIME_HAVE_FILESYSTEM_FEATURES
|
||||||
posixFileSystemFactory* m_fileSysFactory;
|
posixFileSystemFactory* m_fileSysFactory;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user