aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-12-18 10:48:36 +0000
committerVincent Richard <[email protected]>2004-12-18 10:48:36 +0000
commitf31b224aa07ae1d6783a445baef6a6f22a852cff (patch)
tree29d38032f8107c5b557e5cc2d6e98618ae99612d
parentDefault platform handlers (currently only POSIX). (diff)
downloadvmime-f31b224aa07ae1d6783a445baef6a6f22a852cff.tar.gz
vmime-f31b224aa07ae1d6783a445baef6a6f22a852cff.zip
Added #ifdefs's to fix bugs when compiling without messaging or file-system support.
-rw-r--r--src/platforms/posix/handler.cpp8
-rw-r--r--src/platforms/posix/handler.hpp4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/platforms/posix/handler.cpp b/src/platforms/posix/handler.cpp
index 1c3fd7d4..f2861584 100644
--- a/src/platforms/posix/handler.cpp
+++ b/src/platforms/posix/handler.cpp
@@ -154,6 +154,8 @@ const unsigned int posixHandler::getProcessId() const
}
+#if VMIME_HAVE_MESSAGING_FEATURES
+
vmime::messaging::socketFactory* posixHandler::getSocketFactory
(const vmime::string& /* name */) const
{
@@ -168,12 +170,18 @@ vmime::messaging::timeoutHandlerFactory* posixHandler::getTimeoutHandlerFactory
return (NULL);
}
+#endif
+
+
+#if VMIME_HAVE_FILESYSTEM_FEATURES
vmime::utility::fileSystemFactory* posixHandler::getFileSystemFactory() const
{
return (m_fileSysFactory);
}
+#endif
+
void posixHandler::wait() const
{
diff --git a/src/platforms/posix/handler.hpp b/src/platforms/posix/handler.hpp
index 53ca53b9..145595b2 100644
--- a/src/platforms/posix/handler.hpp
+++ b/src/platforms/posix/handler.hpp
@@ -55,11 +55,15 @@ public:
const unsigned int getProcessId() const;
+#if VMIME_HAVE_MESSAGING_FEATURES
vmime::messaging::socketFactory* getSocketFactory(const vmime::string& name) const;
vmime::messaging::timeoutHandlerFactory* getTimeoutHandlerFactory(const vmime::string& name) const;
+#endif
+#if VMIME_HAVE_FILESYSTEM_FEATURES
vmime::utility::fileSystemFactory* getFileSystemFactory() const;
+#endif
void wait() const;