BVB Source Codes

mars Show config.hpp Source code

Return Download mars: download config.hpp Source code - Download mars Source code - Type:.hpp
  1. //  boost/filesystem/v3/config.hpp  ----------------------------------------------------//
  2.  
  3. //  Copyright Beman Dawes 2003
  4.  
  5. //  Distributed under the Boost Software License, Version 1.0.
  6. //  See http://www.boost.org/LICENSE_1_0.txt
  7.  
  8. //  Library home page: http://www.boost.org/libs/filesystem
  9.  
  10. //--------------------------------------------------------------------------------------//
  11.  
  12. #ifndef BOOST_FILESYSTEM3_CONFIG_HPP
  13. #define BOOST_FILESYSTEM3_CONFIG_HPP
  14.  
  15. # if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION != 3
  16. #   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
  17. # endif
  18.  
  19. # if !defined(BOOST_FILESYSTEM_VERSION)
  20. #   define BOOST_FILESYSTEM_VERSION 3
  21. # endif
  22.  
  23. #define BOOST_FILESYSTEM_I18N  // aid users wishing to compile several versions
  24.  
  25. // This header implements separate compilation features as described in
  26. // http://www.boost.org/more/separate_compilation.html
  27.  
  28. #include <boost/config.hpp>
  29. #include <boost/system/api_config.hpp>  // for BOOST_POSIX_API or BOOST_WINDOWS_API
  30. #include <boost/detail/workaround.hpp>
  31. #include <boost/throw_exception.hpp>
  32.  
  33. //  BOOST_FILESYSTEM_DEPRECATED needed for source compiles -----------------------------//
  34.  
  35. # ifdef BOOST_FILESYSTEM_SOURCE
  36. #   define BOOST_FILESYSTEM_DEPRECATED
  37. #   undef BOOST_FILESYSTEM_NO_DEPRECATED   // fixes #9454, src bld fails if NO_DEP defined
  38. # endif
  39.  
  40. //  throw an exception  ----------------------------------------------------------------//
  41. //
  42. //  Exceptions were originally thrown via mars_boost::throw_exception().
  43. //  As throw_exception() became more complex, it caused user error reporting
  44. //  to be harder to interpret, since the exception reported became much more complex.
  45. //  The immediate fix was to throw directly, wrapped in a macro to make any later change
  46. //  easier.
  47.  
  48. #define BOOST_FILESYSTEM_THROW(EX)  BOOST_THROW_EXCEPTION(EX)
  49.  
  50. # if defined( BOOST_NO_STD_WSTRING )
  51. #   error Configuration not supported: Boost.Filesystem V3 and later requires std::wstring support
  52. # endif
  53.  
  54. //  This header implements separate compilation features as described in
  55. //  http://www.boost.org/more/separate_compilation.html
  56.  
  57. //  normalize macros  ------------------------------------------------------------------//
  58.  
  59. #if !defined(BOOST_FILESYSTEM_DYN_LINK) && !defined(BOOST_FILESYSTEM_STATIC_LINK) \
  60.   && !defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_ALL_STATIC_LINK)
  61. # define BOOST_FILESYSTEM_STATIC_LINK
  62. #endif
  63.  
  64. #if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_FILESYSTEM_DYN_LINK)
  65. # define BOOST_FILESYSTEM_DYN_LINK
  66. #elif defined(BOOST_ALL_STATIC_LINK) && !defined(BOOST_FILESYSTEM_STATIC_LINK)
  67. # define BOOST_FILESYSTEM_STATIC_LINK
  68. #endif
  69.  
  70. #if defined(BOOST_FILESYSTEM_DYN_LINK) && defined(BOOST_FILESYSTEM_STATIC_LINK)
  71. # error Must not define both BOOST_FILESYSTEM_DYN_LINK and BOOST_FILESYSTEM_STATIC_LINK
  72. #endif
  73.  
  74. #if defined(BOOST_ALL_NO_LIB) && !defined(BOOST_FILESYSTEM_NO_LIB)
  75. # define BOOST_FILESYSTEM_NO_LIB
  76. #endif
  77.  
  78. //  enable dynamic linking  ------------------------------------------------------------//
  79.  
  80. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
  81. # if defined(BOOST_FILESYSTEM_SOURCE)
  82. #   define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_EXPORT
  83. # else
  84. #   define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_IMPORT
  85. # endif
  86. #else
  87. # define BOOST_FILESYSTEM_DECL
  88. #endif
  89.  
  90. //  enable automatic library variant selection  ----------------------------------------//
  91.  
  92. #if !defined(BOOST_FILESYSTEM_SOURCE) && !defined(BOOST_ALL_NO_LIB) \
  93.   && !defined(BOOST_FILESYSTEM_NO_LIB)
  94. //
  95. // Set the name of our library, this will get undef'ed by auto_link.hpp
  96. // once it's done with it:
  97. //
  98. #define BOOST_LIB_NAME mars_boost_filesystem
  99. //
  100. // If we're importing code from a dll, then tell auto_link.hpp about it:
  101. //
  102. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
  103. #  define BOOST_DYN_LINK
  104. #endif
  105. //
  106. // And include the header that does the work:
  107. //
  108. #include <boost/config/auto_link.hpp>
  109. #endif  // auto-linking disabled
  110.  
  111. #endif // BOOST_FILESYSTEM3_CONFIG_HPP
  112.  
downloadconfig.hpp Source code - Download mars Source code
Related Source Codes/Software:
Hero - Elegant transition library for iOS & tvOS 2017-06-09
deep-photo-styletransfer - Code and data for paper "Deep Photo Style Transfer... 2017-06-09
mastodon - A GNU Social-compatible microblogging server ... 2017-06-09
plyr - A simple HTML5, YouTube and Vimeo player ... 2017-06-08
prepack - Prepack is a partial evaluator for JavaScript. Pre... 2017-06-08
Public-APIs - 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top