From f527700804193c983e36aaaee963a51fac7daab4 Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Sat, 9 May 2015 18:17:33 -0700 Subject: [PATCH] more compile time errors for mdvc --- include/boost/archive/detail/decl.hpp | 11 ++++++----- include/boost/serialization/shared_ptr_helper.hpp | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/boost/archive/detail/decl.hpp b/include/boost/archive/detail/decl.hpp index 4b0ceec6..bb386d86 100644 --- a/include/boost/archive/detail/decl.hpp +++ b/include/boost/archive/detail/decl.hpp @@ -37,12 +37,13 @@ #if !defined(BOOST_WARCHIVE_SOURCE) && !defined(BOOST_ARCHIVE_SOURCE) #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_IMPORT #endif -#endif -#if defined(BOOST_WARCHIVE_SOURCE) || defined(BOOST_ARCHIVE_SOURCE) - #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_EXPORT -#else - #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_IMPORT + #if defined(BOOST_WARCHIVE_SOURCE) || defined(BOOST_ARCHIVE_SOURCE) + #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_EXPORT + #else + #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_IMPORT + #endif + #endif #if ! defined(BOOST_ARCHIVE_DECL) diff --git a/include/boost/serialization/shared_ptr_helper.hpp b/include/boost/serialization/shared_ptr_helper.hpp index 574a38ed..189447a8 100644 --- a/include/boost/serialization/shared_ptr_helper.hpp +++ b/include/boost/serialization/shared_ptr_helper.hpp @@ -71,7 +71,7 @@ class shared_ptr_helper { void operator()(void const *) const {} }; -#if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) +#if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) \ || defined(BOOST_MSVC) \ || defined(__SUNPRO_CC) public: