netfwd.cpp 880 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // netfwd.cpp
  3. // ~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. // Disable autolinking for unit tests.
  11. #if !defined(BOOST_ALL_NO_LIB)
  12. #define BOOST_ALL_NO_LIB 1
  13. #endif // !defined(BOOST_ALL_NO_LIB)
  14. // Prevent link dependency on the Boost.System library.
  15. #if !defined(BOOST_SYSTEM_NO_DEPRECATED)
  16. #define BOOST_SYSTEM_NO_DEPRECATED
  17. #endif // !defined(BOOST_SYSTEM_NO_DEPRECATED)
  18. // Test that header file is self-contained.
  19. #include <boost/asio/ts/netfwd.hpp>
  20. // Test that forward declarations don't conflict with full declarations.
  21. #include <boost/asio/ts/net.hpp>
  22. #include "../unit_test.hpp"
  23. BOOST_ASIO_TEST_SUITE
  24. (
  25. "ts/netfwd",
  26. BOOST_ASIO_TEST_CASE(null_test)
  27. )