config.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #include <boost/system/api_config.hpp>
  10. // This header implements separate compilation features as described in
  11. // http://www.boost.org/more/separate_compilation.html
  12. // enable dynamic or static linking as requested --------------------------------------//
  13. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TIMER_DYN_LINK)
  14. # if defined(BOOST_TIMER_SOURCE)
  15. # define BOOST_TIMER_DECL BOOST_SYMBOL_EXPORT
  16. # else
  17. # define BOOST_TIMER_DECL BOOST_SYMBOL_IMPORT
  18. # endif
  19. #else
  20. # define BOOST_TIMER_DECL
  21. #endif
  22. // enable automatic library variant selection ----------------------------------------//
  23. #if !defined(BOOST_TIMER_SOURCE) && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TIMER_NO_LIB)
  24. //
  25. // Set the name of our library, this will get undef'ed by auto_link.hpp
  26. // once it's done with it:
  27. //
  28. #define BOOST_LIB_NAME boost_timer
  29. //
  30. // If we're importing code from a dll, then tell auto_link.hpp about it:
  31. //
  32. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TIMER_DYN_LINK)
  33. # define BOOST_DYN_LINK
  34. #endif
  35. //
  36. // And include the header that does the work:
  37. //
  38. #include <boost/config/auto_link.hpp>
  39. #endif // auto-linking disabled
  40. #endif // BOOST_TIMER_CONFIG_HPP