1 // boost/timer/config.hpp -----------------------------------------------------------//
3 // Copyright Beman Dawes 2003, 2006, 2011
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
8 // See http://www.boost.org/libs/timer for documentation.
10 #ifndef BOOST_TIMER_CONFIG_HPP
11 #define BOOST_TIMER_CONFIG_HPP
13 #include <boost/config.hpp>
15 #include <boost/system/api_config.hpp>
17 // This header implements separate compilation features as described in
18 // http://www.boost.org/more/separate_compilation.html
20 // enable dynamic or static linking as requested --------------------------------------//
22 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TIMER_DYN_LINK)
23 # if defined(BOOST_TIMER_SOURCE)
24 # define BOOST_TIMER_DECL BOOST_SYMBOL_EXPORT
26 # define BOOST_TIMER_DECL BOOST_SYMBOL_IMPORT
29 # define BOOST_TIMER_DECL
32 // enable automatic library variant selection ----------------------------------------//
34 #if !defined(BOOST_TIMER_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TIMER_NO_LIB)
36 // Set the name of our library, this will get undef'ed by auto_link.hpp
37 // once it's done with it:
39 #define BOOST_LIB_NAME boost_timer
41 // If we're importing code from a dll, then tell auto_link.hpp about it:
43 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TIMER_DYN_LINK)
44 # define BOOST_DYN_LINK
47 // And include the header that does the work:
49 #include <boost/config/auto_link.hpp>
50 #endif // auto-linking disabled
52 #endif // BOOST_TIMER_CONFIG_HPP