diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index c204edb3..d8b60543 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -80,6 +80,8 @@ SOURCES = xml_iarchive xml_oarchive xml_archive_exception + codecvt_null + utf8_codecvt_facet ; WSOURCES = @@ -87,11 +89,9 @@ WSOURCES = basic_text_woprimitive text_wiarchive text_woarchive - utf8_codecvt_facet xml_wgrammar xml_wiarchive xml_woarchive - codecvt_null ; lib boost_serialization diff --git a/include/boost/archive/codecvt_null.hpp b/include/boost/archive/codecvt_null.hpp index 324122b7..0e5001ea 100644 --- a/include/boost/archive/codecvt_null.hpp +++ b/include/boost/archive/codecvt_null.hpp @@ -61,7 +61,7 @@ public: template<> class codecvt_null : public std::codecvt { - virtual BOOST_WARCHIVE_DECL std::codecvt_base::result + virtual BOOST_ARCHIVE_DECL std::codecvt_base::result do_out( std::mbstate_t & state, const wchar_t * first1, @@ -71,7 +71,7 @@ class codecvt_null : public std::codecvt char * last2, char * & next2 ) const; - virtual BOOST_WARCHIVE_DECL std::codecvt_base::result + virtual BOOST_ARCHIVE_DECL std::codecvt_base::result do_in( std::mbstate_t & state, const char * first1, diff --git a/src/codecvt_null.cpp b/src/codecvt_null.cpp index 86ece4ad..ea891f6c 100644 --- a/src/codecvt_null.cpp +++ b/src/codecvt_null.cpp @@ -7,7 +7,7 @@ // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#define BOOST_WARCHIVE_SOURCE +#define BOOST_ARCHIVE_SOURCE #include // codecvt implementation for passing wchar_t objects to char output @@ -17,7 +17,7 @@ namespace boost { namespace archive { -BOOST_WARCHIVE_DECL std::codecvt_base::result +BOOST_ARCHIVE_DECL std::codecvt_base::result codecvt_null::do_out( std::mbstate_t & /*state*/, const wchar_t * first1, @@ -45,7 +45,7 @@ codecvt_null::do_out( return std::codecvt_base::ok; } -BOOST_WARCHIVE_DECL std::codecvt_base::result +BOOST_ARCHIVE_DECL std::codecvt_base::result codecvt_null::do_in( std::mbstate_t & /*state*/, const char * first1, diff --git a/src/utf8_codecvt_facet.cpp b/src/utf8_codecvt_facet.cpp index 07deada1..b0eead46 100644 --- a/src/utf8_codecvt_facet.cpp +++ b/src/utf8_codecvt_facet.cpp @@ -3,14 +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_UTF8_BEGIN_NAMESPACE \ namespace boost { namespace archive { namespace detail { - #define BOOST_UTF8_DECL + #define BOOST_UTF8_DECL BOOST_ARCHIVE_DECL #define BOOST_UTF8_END_NAMESPACE }}} #include #undef BOOST_UTF8_END_NAMESPACE