aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-09-02 07:52:04 +0000
committerVincent Richard <[email protected]>2013-09-02 07:52:04 +0000
commit86f0e14ea5386101c982d98848194c4b80261597 (patch)
treeaf32def3303bd6a10a5160050eeecbc56a843657
parentFixed sharing mode when opening file. (diff)
downloadvmime-86f0e14ea5386101c982d98848194c4b80261597.tar.gz
vmime-86f0e14ea5386101c982d98848194c4b80261597.zip
Fixed linking error on Visual Studio.
-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