Remove uses of BOOST_SYSTEM_HAS_SYSTEM_ERROR

This commit is contained in:
Peter Dimov
2024-01-17 06:49:19 +02:00
parent 80e019069c
commit 3ded81eed0
33 changed files with 16 additions and 357 deletions
-22
View File
@@ -9,23 +9,6 @@
// See library home page at http://www.boost.org/libs/system
#include <boost/system/error_code.hpp>
#include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#include <iostream>
#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" )
int main()
{
std::cout
<< "The version of the C++ standard library being used does not"
" support header <system_error> so interoperation will not be tested.\n";
}
#else
#include <boost/core/lightweight_test.hpp>
#include <boost/core/snprintf.hpp>
#include <system_error>
@@ -337,9 +320,6 @@ static void test_user2_category()
int main()
{
std::cout
<< "The version of the C++ standard library being used"
" supports header <system_error> so interoperation will be tested.\n";
test_generic_category();
test_system_category();
test_user_category();
@@ -347,5 +327,3 @@ int main()
return boost::report_errors();
}
#endif