threads_disabled_compile.cpp 740 B

12345678910111213141516171819
  1. /*=============================================================================
  2. Copyright (c) 2017 Nikita Kniazev
  3. http://spirit.sourceforge.net/
  4. Use, modification and distribution is subject to the Boost Software
  5. License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. // Spirit should not include any Boost.Thread header until user explicitly
  9. // requested threadsafe support with BOOST_SPIRIT_THREADSAFE defined.
  10. #undef BOOST_SPIRIT_THREADSAFE
  11. #ifndef BOOST_DISABLE_THREADS
  12. # define BOOST_DISABLE_THREADS
  13. #endif
  14. #include <boost/spirit/include/classic.hpp>
  15. int main() { return 0; }