annotate DEPENDENCIES/generic/include/boost/filesystem/config.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // boost/filesystem/v3/config.hpp ----------------------------------------------------//
Chris@16 2
Chris@16 3 // Copyright Beman Dawes 2003
Chris@16 4
Chris@16 5 // Distributed under the Boost Software License, Version 1.0.
Chris@16 6 // See http://www.boost.org/LICENSE_1_0.txt
Chris@16 7
Chris@16 8 // Library home page: http://www.boost.org/libs/filesystem
Chris@16 9
Chris@16 10 //--------------------------------------------------------------------------------------//
Chris@16 11
Chris@16 12 #ifndef BOOST_FILESYSTEM3_CONFIG_HPP
Chris@16 13 #define BOOST_FILESYSTEM3_CONFIG_HPP
Chris@16 14
Chris@16 15 # if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION != 3
Chris@16 16 # error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
Chris@16 17 # endif
Chris@16 18
Chris@16 19 # if !defined(BOOST_FILESYSTEM_VERSION)
Chris@16 20 # define BOOST_FILESYSTEM_VERSION 3
Chris@16 21 # endif
Chris@16 22
Chris@16 23 #define BOOST_FILESYSTEM_I18N // aid users wishing to compile several versions
Chris@16 24
Chris@16 25 // This header implements separate compilation features as described in
Chris@16 26 // http://www.boost.org/more/separate_compilation.html
Chris@16 27
Chris@16 28 #include <boost/config.hpp>
Chris@16 29 #include <boost/system/api_config.hpp> // for BOOST_POSIX_API or BOOST_WINDOWS_API
Chris@16 30 #include <boost/detail/workaround.hpp>
Chris@16 31
Chris@16 32 // BOOST_FILESYSTEM_DEPRECATED needed for source compiles -----------------------------//
Chris@16 33
Chris@16 34 # ifdef BOOST_FILESYSTEM_SOURCE
Chris@16 35 # define BOOST_FILESYSTEM_DEPRECATED
Chris@16 36 # endif
Chris@16 37
Chris@16 38 // throw an exception ----------------------------------------------------------------//
Chris@16 39 //
Chris@16 40 // Exceptions were originally thrown via boost::throw_exception().
Chris@16 41 // As throw_exception() became more complex, it caused user error reporting
Chris@16 42 // to be harder to interpret, since the exception reported became much more complex.
Chris@16 43 // The immediate fix was to throw directly, wrapped in a macro to make any later change
Chris@16 44 // easier.
Chris@16 45
Chris@16 46 #define BOOST_FILESYSTEM_THROW(EX) throw EX
Chris@16 47
Chris@16 48 # if defined( BOOST_NO_STD_WSTRING )
Chris@16 49 # error Configuration not supported: Boost.Filesystem V3 and later requires std::wstring support
Chris@16 50 # endif
Chris@16 51
Chris@16 52 // This header implements separate compilation features as described in
Chris@16 53 // http://www.boost.org/more/separate_compilation.html
Chris@16 54
Chris@16 55 // normalize macros ------------------------------------------------------------------//
Chris@16 56
Chris@16 57 #if !defined(BOOST_FILESYSTEM_DYN_LINK) && !defined(BOOST_FILESYSTEM_STATIC_LINK) \
Chris@16 58 && !defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_ALL_STATIC_LINK)
Chris@16 59 # define BOOST_FILESYSTEM_STATIC_LINK
Chris@16 60 #endif
Chris@16 61
Chris@16 62 #if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_FILESYSTEM_DYN_LINK)
Chris@16 63 # define BOOST_FILESYSTEM_DYN_LINK
Chris@16 64 #elif defined(BOOST_ALL_STATIC_LINK) && !defined(BOOST_FILESYSTEM_STATIC_LINK)
Chris@16 65 # define BOOST_FILESYSTEM_STATIC_LINK
Chris@16 66 #endif
Chris@16 67
Chris@16 68 #if defined(BOOST_FILESYSTEM_DYN_LINK) && defined(BOOST_FILESYSTEM_STATIC_LINK)
Chris@16 69 # error Must not define both BOOST_FILESYSTEM_DYN_LINK and BOOST_FILESYSTEM_STATIC_LINK
Chris@16 70 #endif
Chris@16 71
Chris@16 72 #if defined(BOOST_ALL_NO_LIB) && !defined(BOOST_FILESYSTEM_NO_LIB)
Chris@16 73 # define BOOST_FILESYSTEM_NO_LIB
Chris@16 74 #endif
Chris@16 75
Chris@16 76 // enable dynamic linking ------------------------------------------------------------//
Chris@16 77
Chris@16 78 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
Chris@16 79 # if defined(BOOST_FILESYSTEM_SOURCE)
Chris@16 80 # define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_EXPORT
Chris@16 81 # else
Chris@16 82 # define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_IMPORT
Chris@16 83 # endif
Chris@16 84 #else
Chris@16 85 # define BOOST_FILESYSTEM_DECL
Chris@16 86 #endif
Chris@16 87
Chris@16 88 // enable automatic library variant selection ----------------------------------------//
Chris@16 89
Chris@16 90 #if !defined(BOOST_FILESYSTEM_SOURCE) && !defined(BOOST_ALL_NO_LIB) \
Chris@16 91 && !defined(BOOST_FILESYSTEM_NO_LIB)
Chris@16 92 //
Chris@16 93 // Set the name of our library, this will get undef'ed by auto_link.hpp
Chris@16 94 // once it's done with it:
Chris@16 95 //
Chris@16 96 #define BOOST_LIB_NAME boost_filesystem
Chris@16 97 //
Chris@16 98 // If we're importing code from a dll, then tell auto_link.hpp about it:
Chris@16 99 //
Chris@16 100 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
Chris@16 101 # define BOOST_DYN_LINK
Chris@16 102 #endif
Chris@16 103 //
Chris@16 104 // And include the header that does the work:
Chris@16 105 //
Chris@16 106 #include <boost/config/auto_link.hpp>
Chris@16 107 #endif // auto-linking disabled
Chris@16 108
Chris@16 109 #endif // BOOST_FILESYSTEM3_CONFIG_HPP