Chris@16: #ifndef BOOST_ARCHIVE_WCSLEN_HPP Chris@16: #define BOOST_ARCHIVE_WCSLEN_HPP Chris@16: Chris@16: // MS compatible compilers support #pragma once Chris@101: #if defined(_MSC_VER) Chris@16: # pragma once Chris@16: #endif Chris@16: Chris@16: /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 Chris@16: // wcslen.hpp: Chris@16: Chris@16: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . Chris@16: // Use, modification and distribution is subject to the Boost Software Chris@16: // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for updates, documentation, and revision history. Chris@16: Chris@16: #include // size_t Chris@16: #include Chris@16: #if defined(BOOST_NO_STDC_NAMESPACE) Chris@16: namespace std{ Chris@16: using ::size_t; Chris@16: } // namespace std Chris@16: #endif Chris@16: Chris@16: #ifndef BOOST_NO_CWCHAR Chris@16: Chris@16: // a couple of libraries which include wchar_t don't include Chris@16: // wcslen Chris@16: Chris@16: #if defined(BOOST_DINKUMWARE_STDLIB) && BOOST_DINKUMWARE_STDLIB < 306 \ Chris@16: || defined(__LIBCOMO__) Chris@16: Chris@16: namespace std { Chris@16: inline std::size_t wcslen(const wchar_t * ws) Chris@16: { Chris@16: const wchar_t * eows = ws; Chris@16: while(* eows != 0) Chris@16: ++eows; Chris@16: return eows - ws; Chris@16: } Chris@16: } // namespace std Chris@16: Chris@16: #else Chris@16: Chris@16: #include Chris@16: #ifdef BOOST_NO_STDC_NAMESPACE Chris@16: namespace std{ using ::wcslen; } Chris@16: #endif Chris@16: Chris@16: #endif // wcslen Chris@16: Chris@16: #endif //BOOST_NO_CWCHAR Chris@16: Chris@16: #endif //BOOST_ARCHIVE_WCSLEN_HPP