From d6f67b0a4a72032018ea87209402d401626933e0 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 25 Mar 2005 21:37:36 +0000 Subject: Some fixes for Visual C++/Windows. --- src/propertySet.cpp | 4 ++++ src/typeAdapter.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/propertySet.cpp b/src/propertySet.cpp index 17117138..67f923ef 100644 --- a/src/propertySet.cpp +++ b/src/propertySet.cpp @@ -285,6 +285,8 @@ void propertySet::property::setValue(const string& value) } +#ifndef VMIME_INLINE_TEMPLATE_SPECIALIZATION + template <> void propertySet::property::setValue(const string& value) { @@ -322,5 +324,7 @@ const bool propertySet::property::getValue() const } } +#endif // VMIME_INLINE_TEMPLATE_SPECIALIZATION + } // vmime diff --git a/src/typeAdapter.cpp b/src/typeAdapter.cpp index 327d5c37..b65e6bd4 100644 --- a/src/typeAdapter.cpp +++ b/src/typeAdapter.cpp @@ -25,7 +25,7 @@ namespace vmime { -#if !defined(__GNUC__) || ((__GNUC__ >= 3) && (__GNUC_MINOR__ >= 3)) +#if (!defined(__GNUC__) || ((__GNUC__ >= 3) && (__GNUC_MINOR__ >= 3))) && !defined(_MSC_VER) template <> void typeAdapter ::parse(const string& buffer, const string::size_type position, @@ -39,7 +39,7 @@ void typeAdapter ::parse(const string& buffer, const string::size_type p *newPosition = end; } -#endif // !defined(__GNUC__) || ((__GNUC__ >= 3) && (__GNUC_MINOR__ >= 3)) +#endif // (!defined(__GNUC__) || ((__GNUC__ >= 3) && (__GNUC_MINOR__ >= 3))) && !defined(_MSC_VER) } // vmime -- cgit