self_contained_header.cpp 711 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright Andrey Semashev 2019.
  3. * Distributed under the Boost Software License, Version 1.0.
  4. * (See accompanying file LICENSE_1_0.txt or copy at
  5. * http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. /*!
  8. * \file self_contained_header.cpp
  9. * \author Andrey Semashev
  10. * \date 2019-01-19
  11. *
  12. * \brief This file contains a test boilerplate for checking that every public header is self-contained and does not have any missing #includes.
  13. */
  14. #if defined(BOOST_THREAD_TEST_POST_WINDOWS_H)
  15. #include <windows.h>
  16. #endif
  17. #define BOOST_THREAD_TEST_INCLUDE_HEADER() <boost/thread/BOOST_THREAD_TEST_HEADER>
  18. #include BOOST_THREAD_TEST_INCLUDE_HEADER()
  19. int main(int, char*[])
  20. {
  21. return 0;
  22. }