Blame view

3rdparty/boost_1_81_0/boost/locale/config.hpp 2.26 KB
598bfd3f   Hu Chunming   提交_GLIBCXX_USE_CX...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
  //
  // Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)
  //
  // Distributed under the Boost Software License, Version 1.0.
  // https://www.boost.org/LICENSE_1_0.txt
  
  #ifndef BOOST_LOCALE_CONFIG_HPP_INCLUDED
  #define BOOST_LOCALE_CONFIG_HPP_INCLUDED
  
  #include <boost/config.hpp>
  
  #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 // BOOST_LOCALE_SOURCE
  #else
  #    define BOOST_LOCALE_DECL
  #endif // BOOST_LOCALE_DYN_LINK
  
  //
  // Automatically link to the correct build variant where possible.
  //
  #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_LOCALE_NO_LIB) && !defined(BOOST_LOCALE_SOURCE)
  //
  // Set the name of our library, this will get undef'ed by auto_link.hpp
  // once it's done with it:
  //
  #    define BOOST_LIB_NAME boost_locale
  //
  // If we're importing code from a dll, then tell auto_link.hpp about it:
  //
  #    if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_LOCALE_DYN_LINK)
  #        define BOOST_DYN_LINK
  #    endif
  //
  // And include the header that does the work:
  //
  #    include <boost/config/auto_link.hpp>
  #endif // auto-linking disabled
  
  // Check for some C++11 features to provide easier checks for what is missing
  // shortly after the requirement of C++11 in Boost 1.81
  // clang-format off
  #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)
  // clang-format on
  #    error "Boost.Locale requires C++11 since Boost 1.81."
  #endif
  
  #ifdef _MSC_VER
  // Denote a constant condition, e.g. for if(sizeof(...
  #    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
  
  #endif // boost/locale/config.hpp