123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- #ifndef BOOST_LOCALE_CONFIG_HPP_INCLUDED
- #define BOOST_LOCALE_CONFIG_HPP_INCLUDED
- #include <boost/config.hpp>
- #include <boost/config/workaround.hpp>
- #ifdef __has_include
- # if __has_include(<version>)
- # include <version>
- # endif
- #endif
- #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_LOCALE_DYN_LINK)
- # ifdef BOOST_LOCALE_SOURCE
- # define BOOST_LOCALE_DECL BOOST_SYMBOL_EXPORT
- # else
- # define BOOST_LOCALE_DECL BOOST_SYMBOL_IMPORT
- # endif
- #else
- # define BOOST_LOCALE_DECL
- #endif
- #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_LOCALE_NO_LIB) && !defined(BOOST_LOCALE_SOURCE)
- # define BOOST_LIB_NAME boost_locale
- # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_LOCALE_DYN_LINK)
- # define BOOST_DYN_LINK
- # endif
- # include <boost/config/auto_link.hpp>
- #endif
- #if defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) || \
- defined(BOOST_NO_CXX11_DEFAULTED_MOVES) || \
- defined(BOOST_NO_CXX11_HDR_FUNCTIONAL) || \
- defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) || \
- defined(BOOST_NO_CXX11_NOEXCEPT) || \
- defined(BOOST_NO_CXX11_OVERRIDE) || \
- defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
- defined(BOOST_NO_CXX11_SMART_PTR) || \
- defined(BOOST_NO_CXX11_STATIC_ASSERT)
- # error "Boost.Locale requires C++11 since Boost 1.81."
- #endif
- #ifdef _MSC_VER
- # define BOOST_LOCALE_START_CONST_CONDITION __pragma(warning(push)) __pragma(warning(disable : 4127))
- # define BOOST_LOCALE_END_CONST_CONDITION __pragma(warning(pop))
- #else
- # define BOOST_LOCALE_START_CONST_CONDITION
- # define BOOST_LOCALE_END_CONST_CONDITION
- #endif
- #if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
- # define BOOST_LOCALE_USE_WIN32_API 1
- #else
- # define BOOST_LOCALE_USE_WIN32_API 0
- #endif
- #if defined(__clang__) && defined(__has_attribute)
- # if __has_attribute(no_sanitize)
- # define BOOST_LOCALE_NO_SANITIZE(what) __attribute__((no_sanitize(what)))
- # endif
- #endif
- #if !defined(BOOST_LOCALE_NO_SANITIZE)
- # define BOOST_LOCALE_NO_SANITIZE(what)
- #endif
- #if !defined(__cpp_lib_char8_t) || BOOST_WORKAROUND(BOOST_CLANG_VERSION, < 150000)
- # define BOOST_LOCALE_NO_CXX20_STRING8
- #endif
- #endif
|