1 | // (C) Copyright Jonathan Turkanis 2003. |
---|
2 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
---|
3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) |
---|
4 | |
---|
5 | // See http://www.boost.org/libs/iostreams for documentation. |
---|
6 | |
---|
7 | // Adapted from <boost/config/auto_link.hpp> and from |
---|
8 | // http://www.boost.org/more/separate_compilation.html, by John Maddock. |
---|
9 | |
---|
10 | #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED |
---|
11 | #define BOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED |
---|
12 | |
---|
13 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
---|
14 | # pragma once |
---|
15 | #endif |
---|
16 | |
---|
17 | #include <boost/config.hpp> // BOOST_STRINGIZE. |
---|
18 | |
---|
19 | #if defined(BOOST_ZLIB_BINARY) |
---|
20 | # if defined(BOOST_MSVC) || \ |
---|
21 | defined(__BORLANDC__) || \ |
---|
22 | (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) || \ |
---|
23 | (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200)) \ |
---|
24 | /**/ |
---|
25 | |
---|
26 | // Specify the name of the .lib file. |
---|
27 | # pragma comment(lib, BOOST_STRINGIZE(BOOST_ZLIB_BINARY)) |
---|
28 | # endif |
---|
29 | #else |
---|
30 | # if !defined(BOOST_IOSTREAMS_SOURCE) && \ |
---|
31 | !defined(BOOST_ALL_NO_LIB) && \ |
---|
32 | !defined(BOOST_IOSTREAMS_NO_LIB) \ |
---|
33 | /**/ |
---|
34 | |
---|
35 | // Set the name of our library, this will get undef'ed by auto_link.hpp |
---|
36 | // once it's done with it. |
---|
37 | # define BOOST_LIB_NAME boost_zlib |
---|
38 | |
---|
39 | // If we're importing code from a dll, then tell auto_link.hpp about it. |
---|
40 | # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK) |
---|
41 | # define BOOST_DYN_LINK |
---|
42 | # endif |
---|
43 | |
---|
44 | // And include the header that does the work. |
---|
45 | # include <boost/config/auto_link.hpp> |
---|
46 | # endif |
---|
47 | #endif |
---|
48 | |
---|
49 | #endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED |
---|