From 72ef8bf59aace6cb7bc803d18fb1c5feccb161f1 Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Sat, 23 Jan 2016 22:29:04 -0800 Subject: [PATCH] correction of visibility setup --- include/boost/archive/detail/utf8_codecvt_facet.hpp | 3 ++- src/utf8_codecvt_facet.cpp | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/boost/archive/detail/utf8_codecvt_facet.hpp b/include/boost/archive/detail/utf8_codecvt_facet.hpp index b5410d9a..b88df89f 100644 --- a/include/boost/archive/detail/utf8_codecvt_facet.hpp +++ b/include/boost/archive/detail/utf8_codecvt_facet.hpp @@ -10,9 +10,10 @@ #include #ifdef BOOST_NO_CXX11_HDR_CODECVT + #include #define BOOST_UTF8_BEGIN_NAMESPACE \ namespace boost { namespace archive { namespace detail { - #define BOOST_UTF8_DECL + #define BOOST_UTF8_DECL BOOST_ARCHIVE_OR_WARCHIVE_DECL #define BOOST_UTF8_END_NAMESPACE }}} #include diff --git a/src/utf8_codecvt_facet.cpp b/src/utf8_codecvt_facet.cpp index c20b05c1..62b4202b 100644 --- a/src/utf8_codecvt_facet.cpp +++ b/src/utf8_codecvt_facet.cpp @@ -3,18 +3,16 @@ // (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) -#define BOOST_ARCHIVE_SOURCE #include - -#include - #ifdef BOOST_NO_STD_WSTREAMBUF #error "wide char i/o not supported on this platform" #else #ifdef BOOST_NO_CXX11_HDR_CODECVT + # define BOOST_ARCHIVE_SOURCE + #include #define BOOST_UTF8_BEGIN_NAMESPACE \ namespace boost { namespace archive { namespace detail { - #define BOOST_UTF8_DECL BOOST_ARCHIVE_DECL + #define BOOST_UTF8_DECL BOOST_ARCHIVE_OR_WARCHIVE_DECL #define BOOST_UTF8_END_NAMESPACE }}} #include #undef BOOST_UTF8_END_NAMESPACE