config.hpp 1.5 KB

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