From 835cb4a8edc532153b5bb2a945f36eb6928e1186 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 18 Dec 2004 11:06:05 +0000 Subject: Added #ifdefs's to fix bugs when compiling without messaging or file-system support. --- src/platforms/posix/handler.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/platforms/posix/handler.cpp') diff --git a/src/platforms/posix/handler.cpp b/src/platforms/posix/handler.cpp index f2861584..35f0a21b 100644 --- a/src/platforms/posix/handler.cpp +++ b/src/platforms/posix/handler.cpp @@ -40,16 +40,24 @@ namespace posix { 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() { +#if VMIME_HAVE_MESSAGING_FEATURES delete (m_socketFactory); +#endif +#if VMIME_HAVE_FILESYSTEM_FEATURES delete (m_fileSysFactory); +#endif } -- cgit v1.2.3