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