has_pthreads_pass.cpp 976 B

12345678910111213141516171819202122232425262728293031323334
  1. // This file was automatically generated on Fri Dec 03 18:04:00 2004
  2. // by libs/config/tools/generate.cpp
  3. // Copyright John Maddock 2002-4.
  4. // Use, modification and distribution are subject to the
  5. // Boost Software License, Version 1.0. (See accompanying file
  6. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. // See http://www.boost.org/libs/config for the most recent version.
  8. // Test file for macro BOOST_HAS_PTHREADS
  9. // This file should compile, if it does not then
  10. // BOOST_HAS_PTHREADS should not be defined.
  11. // See file boost_has_pthreads.ipp for details
  12. // Must not have BOOST_ASSERT_CONFIG set; it defeats
  13. // the objective of this file:
  14. #ifdef BOOST_ASSERT_CONFIG
  15. # undef BOOST_ASSERT_CONFIG
  16. #endif
  17. #include <boost/config.hpp>
  18. #include "test.hpp"
  19. #ifdef BOOST_HAS_PTHREADS
  20. #include "boost_has_pthreads.ipp"
  21. #else
  22. namespace boost_has_pthreads = empty_boost;
  23. #endif
  24. int main( int, char *[] )
  25. {
  26. return boost_has_pthreads::test();
  27. }