Blame boost/filesystem/config.hpp

Packit 58578d
//  boost/filesystem/v3/config.hpp  ----------------------------------------------------//
Packit 58578d
Packit 58578d
//  Copyright Beman Dawes 2003
Packit 58578d
Packit 58578d
//  Distributed under the Boost Software License, Version 1.0.
Packit 58578d
//  See http://www.boost.org/LICENSE_1_0.txt
Packit 58578d
Packit 58578d
//  Library home page: http://www.boost.org/libs/filesystem
Packit 58578d
Packit 58578d
//--------------------------------------------------------------------------------------// 
Packit 58578d
Packit 58578d
#ifndef BOOST_FILESYSTEM3_CONFIG_HPP
Packit 58578d
#define BOOST_FILESYSTEM3_CONFIG_HPP
Packit 58578d
Packit 58578d
# if defined(BOOST_FILESYSTEM_VERSION) && BOOST_FILESYSTEM_VERSION != 3
Packit 58578d
#   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
Packit 58578d
# endif
Packit 58578d
Packit 58578d
# if !defined(BOOST_FILESYSTEM_VERSION)
Packit 58578d
#   define BOOST_FILESYSTEM_VERSION 3
Packit 58578d
# endif
Packit 58578d
Packit 58578d
#define BOOST_FILESYSTEM_I18N  // aid users wishing to compile several versions
Packit 58578d
Packit 58578d
// This header implements separate compilation features as described in
Packit 58578d
// http://www.boost.org/more/separate_compilation.html
Packit 58578d
Packit 58578d
#include <boost/config.hpp>
Packit 58578d
#include <boost/system/api_config.hpp>  // for BOOST_POSIX_API or BOOST_WINDOWS_API
Packit 58578d
#include <boost/detail/workaround.hpp>
Packit 58578d
Packit 58578d
//  BOOST_FILESYSTEM_DEPRECATED needed for source compiles -----------------------------//
Packit 58578d
Packit 58578d
# ifdef BOOST_FILESYSTEM_SOURCE
Packit 58578d
#   define BOOST_FILESYSTEM_DEPRECATED
Packit 58578d
#   undef BOOST_FILESYSTEM_NO_DEPRECATED   // fixes #9454, src bld fails if NO_DEP defined
Packit 58578d
# endif
Packit 58578d
Packit 58578d
//  throw an exception  ----------------------------------------------------------------//
Packit 58578d
//
Packit 58578d
//  Exceptions were originally thrown via boost::throw_exception().
Packit 58578d
//  As throw_exception() became more complex, it caused user error reporting
Packit 58578d
//  to be harder to interpret, since the exception reported became much more complex.
Packit 58578d
//  The immediate fix was to throw directly, wrapped in a macro to make any later change
Packit 58578d
//  easier.
Packit 58578d
Packit 58578d
#define BOOST_FILESYSTEM_THROW(EX) throw EX
Packit 58578d
Packit 58578d
# if defined( BOOST_NO_STD_WSTRING )
Packit 58578d
#   error Configuration not supported: Boost.Filesystem V3 and later requires std::wstring support
Packit 58578d
# endif
Packit 58578d
Packit 58578d
//  This header implements separate compilation features as described in
Packit 58578d
//  http://www.boost.org/more/separate_compilation.html
Packit 58578d
Packit 58578d
//  normalize macros  ------------------------------------------------------------------//
Packit 58578d
Packit 58578d
#if !defined(BOOST_FILESYSTEM_DYN_LINK) && !defined(BOOST_FILESYSTEM_STATIC_LINK) \
Packit 58578d
  && !defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_ALL_STATIC_LINK)
Packit 58578d
# define BOOST_FILESYSTEM_STATIC_LINK
Packit 58578d
#endif
Packit 58578d
Packit 58578d
#if defined(BOOST_ALL_DYN_LINK) && !defined(BOOST_FILESYSTEM_DYN_LINK)
Packit 58578d
# define BOOST_FILESYSTEM_DYN_LINK 
Packit 58578d
#elif defined(BOOST_ALL_STATIC_LINK) && !defined(BOOST_FILESYSTEM_STATIC_LINK)
Packit 58578d
# define BOOST_FILESYSTEM_STATIC_LINK 
Packit 58578d
#endif
Packit 58578d
Packit 58578d
#if defined(BOOST_FILESYSTEM_DYN_LINK) && defined(BOOST_FILESYSTEM_STATIC_LINK)
Packit 58578d
# error Must not define both BOOST_FILESYSTEM_DYN_LINK and BOOST_FILESYSTEM_STATIC_LINK
Packit 58578d
#endif
Packit 58578d
Packit 58578d
#if defined(BOOST_ALL_NO_LIB) && !defined(BOOST_FILESYSTEM_NO_LIB)
Packit 58578d
# define BOOST_FILESYSTEM_NO_LIB 
Packit 58578d
#endif
Packit 58578d
Packit 58578d
//  enable dynamic linking  ------------------------------------------------------------//
Packit 58578d
Packit 58578d
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
Packit 58578d
# if defined(BOOST_FILESYSTEM_SOURCE)
Packit 58578d
#   define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_EXPORT
Packit 58578d
# else 
Packit 58578d
#   define BOOST_FILESYSTEM_DECL BOOST_SYMBOL_IMPORT
Packit 58578d
# endif
Packit 58578d
#else
Packit 58578d
# define BOOST_FILESYSTEM_DECL
Packit 58578d
#endif
Packit 58578d
Packit 58578d
//  enable automatic library variant selection  ----------------------------------------// 
Packit 58578d
Packit 58578d
#if !defined(BOOST_FILESYSTEM_SOURCE) && !defined(BOOST_ALL_NO_LIB) \
Packit 58578d
  && !defined(BOOST_FILESYSTEM_NO_LIB)
Packit 58578d
//
Packit 58578d
// Set the name of our library, this will get undef'ed by auto_link.hpp
Packit 58578d
// once it's done with it:
Packit 58578d
//
Packit 58578d
#define BOOST_LIB_NAME boost_filesystem
Packit 58578d
//
Packit 58578d
// If we're importing code from a dll, then tell auto_link.hpp about it:
Packit 58578d
//
Packit 58578d
#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)
Packit 58578d
#  define BOOST_DYN_LINK
Packit 58578d
#endif
Packit 58578d
//
Packit 58578d
// And include the header that does the work:
Packit 58578d
//
Packit 58578d
#include <boost/config/auto_link.hpp>
Packit 58578d
#endif  // auto-linking disabled
Packit 58578d
Packit 58578d
#endif // BOOST_FILESYSTEM3_CONFIG_HPP