test_lib_anonymous.hpp 862 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Copyright (c) 2012-2019 Antony Polukhin.
  3. //
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. #ifndef BOOST_TYPE_INDEX_TESTS_TEST_LIB_ANONYMOUS_HPP
  9. #define BOOST_TYPE_INDEX_TESTS_TEST_LIB_ANONYMOUS_HPP
  10. // MS compatible compilers support #pragma once
  11. #if defined(_MSC_VER)
  12. # pragma once
  13. #endif
  14. #include <boost/type_index.hpp>
  15. // This is ALWAYS a dynamic library
  16. #if defined(TEST_LIB_SOURCE)
  17. # define TEST_LIB_DECL BOOST_SYMBOL_EXPORT
  18. # else
  19. # define TEST_LIB_DECL BOOST_SYMBOL_IMPORT
  20. # endif
  21. namespace test_lib {
  22. TEST_LIB_DECL boost::typeindex::type_index get_anonymous_user_defined_class();
  23. TEST_LIB_DECL boost::typeindex::type_index get_const_anonymous_user_defined_class();
  24. }
  25. #endif // BOOST_TYPE_INDEX_TESTS_TEST_LIB_ANONYMOUS_HPP