auto_link_warchive.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef BOOST_ARCHIVE_DETAIL_AUTO_LINK_WARCHIVE_HPP
  2. #define BOOST_ARCHIVE_DETAIL_AUTO_LINK_WARCHIVE_HPP
  3. // MS compatible compilers support #pragma once
  4. #if defined(_MSC_VER)
  5. # pragma once
  6. #endif
  7. /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
  8. // auto_link_warchive.hpp
  9. //
  10. // (c) Copyright Robert Ramey 2004
  11. // Use, modification, and distribution is subject to the Boost Software
  12. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  13. // http://www.boost.org/LICENSE_1_0.txt)
  14. // See library home page at http://www.boost.org/libs/serialization
  15. //----------------------------------------------------------------------------//
  16. // This header implements separate compilation features as described in
  17. // http://www.boost.org/more/separate_compilation.html
  18. // enable automatic library variant selection ------------------------------//
  19. #include <boost/archive/detail/decl.hpp>
  20. #if !defined(BOOST_WARCHIVE_SOURCE) \
  21. && !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_SERIALIZATION_NO_LIB)
  22. // Set the name of our library, this will get undef'ed by auto_link.hpp
  23. // once it's done with it:
  24. //
  25. #define BOOST_LIB_NAME boost_wserialization
  26. //
  27. // If we're importing code from a dll, then tell auto_link.hpp about it:
  28. //
  29. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
  30. # define BOOST_DYN_LINK
  31. #endif
  32. //
  33. // And include the header that does the work:
  34. //
  35. #include <boost/config/auto_link.hpp>
  36. #endif // auto-linking disabled
  37. #endif // ARCHIVE_DETAIL_AUTO_LINK_ARCHIVE_HPP