From 86f0e14ea5386101c982d98848194c4b80261597 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 2 Sep 2013 09:52:04 +0200 Subject: [PATCH] Fixed linking error on Visual Studio. --- src/propertySet.cpp | 6 ++++++ vmime/propertySet.hpp | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/propertySet.cpp b/src/propertySet.cpp index b0084d31..284f3eaa 100644 --- a/src/propertySet.cpp +++ b/src/propertySet.cpp @@ -275,6 +275,9 @@ const string& propertySet::property::getName() const } +#ifndef _MSC_VER + + const string& propertySet::property::getValue() const { return (m_value); @@ -287,6 +290,9 @@ void propertySet::property::setValue(const string& value) } +#endif // !_MSC_VER + + #ifndef VMIME_INLINE_TEMPLATE_SPECIALIZATION template <> diff --git a/vmime/propertySet.hpp b/vmime/propertySet.hpp index a2679808..1fe39aed 100644 --- a/vmime/propertySet.hpp +++ b/vmime/propertySet.hpp @@ -63,6 +63,11 @@ public: */ const string& getName() const; +#ifndef _MSC_VER + + // Visual Studio errors on linking with these 2 functions, + // whereas GCC and CLang need them. + /** Return the value of the property as a string. * * @return current value of the property @@ -75,6 +80,8 @@ public: */ void setValue(const string& value); +#endif // !_MSC_VER + /** Set the value of the property as a generic type. * * @param value new value for property