decl.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef BOOST_ARCHIVE_DETAIL_DECL_HPP
  2. #define BOOST_ARCHIVE_DETAIL_DECL_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. // decl.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. #include <boost/config.hpp>
  19. #if (defined(BOOST_ALL_DYN_LINK) || defined(BOOST_SERIALIZATION_DYN_LINK))
  20. #if defined(BOOST_ARCHIVE_SOURCE)
  21. #define BOOST_ARCHIVE_DECL BOOST_SYMBOL_EXPORT
  22. #else
  23. #define BOOST_ARCHIVE_DECL BOOST_SYMBOL_IMPORT
  24. #endif
  25. #if defined(BOOST_WARCHIVE_SOURCE)
  26. #define BOOST_WARCHIVE_DECL BOOST_SYMBOL_EXPORT
  27. #else
  28. #define BOOST_WARCHIVE_DECL BOOST_SYMBOL_IMPORT
  29. #endif
  30. #if defined(BOOST_WARCHIVE_SOURCE) || defined(BOOST_ARCHIVE_SOURCE)
  31. #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_EXPORT
  32. #else
  33. #define BOOST_ARCHIVE_OR_WARCHIVE_DECL BOOST_SYMBOL_IMPORT
  34. #endif
  35. #endif
  36. #if ! defined(BOOST_ARCHIVE_DECL)
  37. #define BOOST_ARCHIVE_DECL
  38. #endif
  39. #if ! defined(BOOST_WARCHIVE_DECL)
  40. #define BOOST_WARCHIVE_DECL
  41. #endif
  42. #if ! defined(BOOST_ARCHIVE_OR_WARCHIVE_DECL)
  43. #define BOOST_ARCHIVE_OR_WARCHIVE_DECL
  44. #endif
  45. #endif // BOOST_ARCHIVE_DETAIL_DECL_HPP