blob: e3df50a97530128bf2f9c17ff7df98f6e0bac678 [file] [log] [blame]
Jeff Thompson86b6d642013-10-17 15:01:56 -07001// (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 <ndnboost/config/auto_link.hpp> and from
9// http://www.boost.org/more/separate_compilation.html, by John Maddock.
10
11#ifndef NDNBOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED
12#define NDNBOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED
13
14#if defined(_MSC_VER) && (_MSC_VER >= 1020)
15# pragma once
16#endif
17
18#include <ndnboost/config.hpp> // NDNBOOST_STRINGIZE.
19
20#if defined(NDNBOOST_ZLIB_BINARY)
21# if defined(NDNBOOST_MSVC) || \
22 defined(__BORLANDC__) || \
23 (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) || \
24 (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200)) \
25 /**/
26
27// Specify the name of the .lib file.
28# pragma comment(lib, NDNBOOST_STRINGIZE(NDNBOOST_ZLIB_BINARY))
29# endif
30#else
31# if !defined(NDNBOOST_IOSTREAMS_SOURCE) && \
32 !defined(NDNBOOST_ALL_NO_LIB) && \
33 !defined(NDNBOOST_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 NDNBOOST_LIB_NAME ndnboost_zlib
39
40// If we're importing code from a dll, then tell auto_link.hpp about it.
41# if defined(NDNBOOST_ALL_DYN_LINK) || defined(NDNBOOST_IOSTREAMS_DYN_LINK)
42# define NDNBOOST_DYN_LINK
43# endif
44
45// And include the header that does the work.
46# include <ndnboost/config/auto_link.hpp>
47# endif
48#endif
49
50#endif // #ifndef NDNBOOST_IOSTREAMS_DETAIL_CONFIG_ZLIB_HPP_INCLUDED