]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/iostreams/detail/config/auto_link.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / iostreams / detail / config / auto_link.hpp
CommitLineData
7c673cae
FG
1// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2// (C) Copyright 2003-2007 Jonathan Turkanis
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
5
6// See http://www.boost.org/libs/iostreams for documentation.
7
8// Adapted from <boost/config/auto_link.hpp> and from
9// http://www.boost.org/more/separate_compilation.html, by John Maddock.
10
11#ifndef BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED
12#define BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED
13
14#if defined(_MSC_VER)
15# pragma once
16#endif
17
18#if defined(BOOST_EXTERNAL_LIB_NAME)
19# if defined(BOOST_MSVC) \
20effc67 20 || defined(__BORLANDC__) && !defined(__clang__) \
7c673cae
FG
21 || (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \
22 || (defined(__ICL) && defined(_MSC_EXTENSIONS)) \
23 /**/
24# pragma comment(lib, BOOST_EXTERNAL_LIB_NAME)
25# endif
26# undef BOOST_EXTERNAL_LIB_NAME
27#endif
28
29//------------------Enable automatic library variant selection----------------//
30
31#if !defined(BOOST_IOSTREAMS_SOURCE) && \
32 !defined(BOOST_ALL_NO_LIB) && \
33 !defined(BOOST_IOSTREAMS_NO_LIB) \
34 /**/
35
36// Set the name of our library, this will get undef'ed by auto_link.hpp
37// once it's done with it.
38# define BOOST_LIB_NAME boost_iostreams
39
40// If we're importing code from a dll, then tell auto_link.hpp about it.
41# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
42# define BOOST_DYN_LINK
43# endif
44
45// And include the header that does the work.
46# include <boost/config/auto_link.hpp>
47#endif // auto-linking disabled
48
49#endif // #ifndef BOOST_IOSTREAMS_DETAIL_AUTO_LINK_HPP_INCLUDED