auto_link_archive.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef BOOST_ARCHIVE_DETAIL_AUTO_LINK_ARCHIVE_HPP
  2. #define BOOST_ARCHIVE_DETAIL_AUTO_LINK_ARCHIVE_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_archive.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_ALL_NO_LIB) && !defined(BOOST_SERIALIZATION_NO_LIB) \
  21. && !defined(BOOST_ARCHIVE_SOURCE) && !defined(BOOST_WARCHIVE_SOURCE) \
  22. && !defined(BOOST_SERIALIZATION_SOURCE)
  23. // Set the name of our library, this will get undef'ed by auto_link.hpp
  24. // once it's done with it:
  25. //
  26. #define BOOST_LIB_NAME boost_serialization
  27. //
  28. // If we're importing code from a dll, then tell auto_link.hpp about it:
  29. //
  30. #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK)
  31. # define BOOST_DYN_LINK
  32. #endif
  33. //
  34. // And include the header that does the work:
  35. //
  36. #include <boost/config/auto_link.hpp>
  37. #endif // auto-linking disabled
  38. #endif // BOOST_ARCHIVE_DETAIL_AUTO_LINK_ARCHIVE_HPP