header_deprecated.hpp 832 B

1234567891011121314151617181920212223242526
  1. #ifndef BHO_CONFIG_HEADER_DEPRECATED_HPP_INCLUDED
  2. #define BHO_CONFIG_HEADER_DEPRECATED_HPP_INCLUDED
  3. // Copyright 2017 Peter Dimov.
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. //
  7. // See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt
  9. //
  10. // BHO_HEADER_DEPRECATED("<alternative>")
  11. //
  12. // Expands to the equivalent of
  13. // BHO_PRAGMA_MESSAGE("This header is deprecated. Use <alternative> instead.")
  14. //
  15. // Note that this header is C compatible.
  16. #include <asio2/bho/config/pragma_message.hpp>
  17. #if defined(BHO_ALLOW_DEPRECATED_HEADERS) || defined(BHO_ALLOW_DEPRECATED)
  18. # define BHO_HEADER_DEPRECATED(a)
  19. #else
  20. # define BHO_HEADER_DEPRECATED(a) BHO_PRAGMA_MESSAGE("This header is deprecated. Use " a " instead.")
  21. #endif
  22. #endif // BHO_CONFIG_HEADER_DEPRECATED_HPP_INCLUDED