aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/propertySet.cpp6
-rw-r--r--vmime/propertySet.hpp7
2 files changed, 13 insertions, 0 deletions
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