source: NonGTP/Boost/boost/iostreams/detail/config/dyn_link.hpp @ 857

Revision 857, 1.1 KB checked in by igarcia, 18 years ago (diff)
Line 
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 http://www.boost.org/more/separate_compilation.html, by
8// John Maddock.
9
10#ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_DYN_LINK_HPP_INCLUDED
11#define BOOST_IOSTREAMS_DETAIL_CONFIG_DYN_LINK_HPP_INCLUDED
12
13#if defined(_MSC_VER) && (_MSC_VER >= 1020)
14# pragma once
15#endif             
16
17#include <boost/config.hpp>
18#include <boost/detail/workaround.hpp>
19
20//------------------Enable dynamic linking on windows-------------------------//
21
22#ifdef BOOST_HAS_DECLSPEC
23# if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_IOSTREAMS_DYN_LINK)
24#  ifdef BOOST_IOSTREAMS_SOURCE
25#   define BOOST_IOSTREAMS_DECL __declspec(dllexport)
26#  else
27#   define BOOST_IOSTREAMS_DECL __declspec(dllimport)
28#  endif 
29# endif 
30#endif
31
32#ifndef BOOST_IOSTREAMS_DECL
33# define BOOST_IOSTREAMS_DECL
34#endif
35
36#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_DYN_LINK_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.