diff --git a/include/boost/system/detail/config.hpp b/include/boost/system/detail/config.hpp index 5ec2914..4864392 100644 --- a/include/boost/system/detail/config.hpp +++ b/include/boost/system/detail/config.hpp @@ -17,10 +17,6 @@ // // https://github.com/boostorg/system/issues/92 -// BOOST_SYSTEM_HAS_SYSTEM_ERROR - -#define BOOST_SYSTEM_HAS_SYSTEM_ERROR - // BOOST_SYSTEM_NOEXCEPT // Retained for backward compatibility diff --git a/include/boost/system/detail/error_category.hpp b/include/boost/system/detail/error_category.hpp index 8e7d82a..f385408 100644 --- a/include/boost/system/detail/error_category.hpp +++ b/include/boost/system/detail/error_category.hpp @@ -17,11 +17,8 @@ #include #include #include - -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) -# include -# include -#endif +#include +#include namespace boost { @@ -81,16 +78,8 @@ private: void const* stdcat_align_; }; -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - mutable std::atomic< unsigned > sc_init_; -#else - - unsigned sc_init_; - -#endif - protected: ~error_category() = default; @@ -156,8 +145,6 @@ public: return std::less()( &lhs, &rhs ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - void init_stdcat() const; # if defined(__SUNPRO_CC) // trailing __global is not supported @@ -165,8 +152,6 @@ public: # else operator std::error_category const & () const BOOST_SYMBOL_VISIBLE; # endif - -#endif }; #if defined(BOOST_MSVC) && BOOST_MSVC < 1900 diff --git a/include/boost/system/detail/error_category_impl.hpp b/include/boost/system/detail/error_category_impl.hpp index 5674729..6dd4469 100644 --- a/include/boost/system/detail/error_category_impl.hpp +++ b/include/boost/system/detail/error_category_impl.hpp @@ -75,8 +75,6 @@ inline char const * error_category::message( int ev, char * buffer, std::size_t // interoperability with std::error_code, std::error_condition -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - #include #include #include @@ -165,6 +163,4 @@ inline BOOST_NOINLINE error_category::operator std::error_category const & () co } // namespace system } // namespace boost -#endif // #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - #endif // #ifndef BOOST_SYSTEM_DETAIL_ERROR_CATEGORY_IMPL_HPP_INCLUDED diff --git a/include/boost/system/detail/error_code.hpp b/include/boost/system/detail/error_code.hpp index b8833b3..6458e23 100644 --- a/include/boost/system/detail/error_code.hpp +++ b/include/boost/system/detail/error_code.hpp @@ -21,11 +21,7 @@ #include #include #include - -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) -# include -#endif - +#include #include #include #include @@ -33,10 +29,7 @@ #include #include #include - -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) -# include -#endif +#include #if defined(BOOST_GCC) && BOOST_GCC >= 40600 && BOOST_GCC < 70000 # pragma GCC diagnostic push @@ -79,9 +72,7 @@ private: union { data d1_; -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) unsigned char d2_[ sizeof(std::error_code) ]; -#endif }; // 0: default constructed, d1_ value initialized @@ -142,9 +133,7 @@ public: template BOOST_SYSTEM_CONSTEXPR error_code( ErrorCodeEnum e, typename detail::enable_if< is_error_code_enum::value -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) || std::is_error_code_enum::value -#endif >::type* = 0 ) BOOST_NOEXCEPT: d1_(), lc_flags_( 0 ) { *this = make_error_code( e ); @@ -161,8 +150,6 @@ public: } } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - error_code( std::error_code const& ec ) BOOST_NOEXCEPT: d1_(), lc_flags_( 0 ) { @@ -181,8 +168,6 @@ public: } } -#endif - // modifiers: BOOST_SYSTEM_CONSTEXPR void assign( int val, const error_category & cat ) BOOST_NOEXCEPT @@ -223,18 +208,12 @@ public: } else { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - std::error_code const& ec = *reinterpret_cast( d2_ ); unsigned cv = static_cast( ec.value() ); unsigned ch = static_cast( reinterpret_cast( &ec.category() ) % 2097143 ); // 2^21-9, prime return static_cast( cv + 1000 * ch ); -#else - - return -1; -#endif } } @@ -262,17 +241,12 @@ public: std::string message() const { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - if( lc_flags_ == 1 ) { std::error_code const& ec = *reinterpret_cast( d2_ ); return ec.message(); } - -#endif - - if( lc_flags_ == 0 ) + else if( lc_flags_ == 0 ) { return detail::system_error_category_message( value() ); } @@ -284,7 +258,6 @@ public: char const * message( char * buffer, std::size_t len ) const BOOST_NOEXCEPT { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) if( lc_flags_ == 1 ) { std::error_code const& ec = *reinterpret_cast( d2_ ); @@ -304,9 +277,7 @@ public: } #endif } -#endif - - if( lc_flags_ == 0 ) + else if( lc_flags_ == 0 ) { return detail::system_error_category_message( value(), buffer, len ); } @@ -320,13 +291,12 @@ public: { if( lc_flags_ & 1 ) { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) if( lc_flags_ == 1 ) { std::error_code const& ec = *reinterpret_cast( d2_ ); return ec.value() != 0; } -#endif + return true; } else @@ -382,8 +352,6 @@ public: BOOST_SYSTEM_CONSTEXPR inline friend bool operator==( const error_code & lhs, const error_code & rhs ) BOOST_NOEXCEPT { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - bool s1 = lhs.lc_flags_ == 1; bool s2 = rhs.lc_flags_ == 1; @@ -397,7 +365,6 @@ public: return e1 == e2; } else -#endif { return lhs.value() == rhs.value() && lhs.category() == rhs.category(); } @@ -405,8 +372,6 @@ public: BOOST_SYSTEM_CONSTEXPR inline friend bool operator<( const error_code & lhs, const error_code & rhs ) BOOST_NOEXCEPT { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - bool s1 = lhs.lc_flags_ == 1; bool s2 = rhs.lc_flags_ == 1; @@ -421,7 +386,6 @@ public: return e1 < e2; } else -#endif { return lhs.category() < rhs.category() || (lhs.category() == rhs.category() && lhs.value() < rhs.value()); } @@ -432,8 +396,6 @@ public: return !( lhs == rhs ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - inline friend bool operator==( std::error_code const & lhs, error_code const & rhs ) BOOST_NOEXCEPT { return lhs == static_cast< std::error_code >( rhs ); @@ -582,14 +544,10 @@ public: class E = typename std::enable_if::value>::type> operator T const& () = delete; -#endif - #endif std::string to_string() const { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - if( lc_flags_ == 1 ) { std::error_code const& e2 = *reinterpret_cast( d2_ ); @@ -601,7 +559,6 @@ public: return r; } else -#endif { std::string r = category_name(); detail::append_int( r, value() ); @@ -636,15 +593,11 @@ public: inline bool operator==( const error_code & code, const error_condition & condition ) BOOST_NOEXCEPT { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - if( code.lc_flags_ == 1 ) { return static_cast( code ) == static_cast( condition ); } else - -#endif { return code.category().equivalent( code.value(), condition ) || condition.category().equivalent( code, condition.value() ); } @@ -667,16 +620,12 @@ inline bool operator!=( const error_condition & lhs, const error_code & rhs ) BO inline std::size_t hash_value( error_code const & ec ) { -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - if( ec.lc_flags_ == 1 ) { std::error_code const& e2 = *reinterpret_cast( ec.d2_ ); return std::hash()( e2 ); } -#endif - error_category const & cat = ec.category(); boost::ulong_long_type id_ = cat.id_; diff --git a/include/boost/system/detail/error_condition.hpp b/include/boost/system/detail/error_condition.hpp index a53b4d9..4af552b 100644 --- a/include/boost/system/detail/error_condition.hpp +++ b/include/boost/system/detail/error_condition.hpp @@ -199,8 +199,6 @@ public: return !( lhs == rhs ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - operator std::error_condition () const { // This condition must be the same as the one in error_category_impl.hpp @@ -294,8 +292,6 @@ public: return !( lhs == rhs ); } -#endif - std::string to_string() const { std::string r( "cond:" ); diff --git a/test/ec_hash_value_test.cpp b/test/ec_hash_value_test.cpp index 0a59b6f..75f5623 100644 --- a/test/ec_hash_value_test.cpp +++ b/test/ec_hash_value_test.cpp @@ -7,9 +7,7 @@ #include #include #include -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) #include -#endif namespace sys = boost::system; @@ -69,8 +67,6 @@ int main() BOOST_TEST( e2 == e3 || hash_value( e2 ) != hash_value( e3 ) ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - // std:: wrapping against normal { std::error_code e1( EINVAL, std::generic_category() ); @@ -126,7 +122,5 @@ int main() BOOST_TEST( e2 == e3 || hash_value( e2 ) != hash_value( e3 ) ); } -#endif - return boost::report_errors(); } diff --git a/test/ec_location_test.cpp b/test/ec_location_test.cpp index b46fa62..e6f8ad9 100644 --- a/test/ec_location_test.cpp +++ b/test/ec_location_test.cpp @@ -85,8 +85,6 @@ int main() BOOST_TEST_EQ( ec.location().line(), 75 ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - { std::error_code e2( val, std::generic_category() ); @@ -107,10 +105,8 @@ int main() BOOST_TEST( ec.failed() ); BOOST_TEST( ec.has_location() ); - BOOST_TEST_EQ( ec.location().line(), 100 ); + BOOST_TEST_EQ( ec.location().line(), 98 ); } -#endif - return boost::report_errors(); } diff --git a/test/ec_location_test2.cpp b/test/ec_location_test2.cpp index e60bb7a..dfda13e 100644 --- a/test/ec_location_test2.cpp +++ b/test/ec_location_test2.cpp @@ -32,8 +32,6 @@ sys::error_code make_error_code( E e ) return e == 0? sys::error_code(): sys::error_code( e, sys::generic_category() ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - enum E2 { e2inval = EINVAL @@ -57,8 +55,6 @@ std::error_code make_error_code( E2 e ) return std::error_code( e, std::generic_category() ); } -#endif - int main() { { @@ -84,7 +80,7 @@ int main() BOOST_TEST( ec.failed() ); BOOST_TEST( ec.has_location() ); - BOOST_TEST_EQ( ec.location().line(), 77 ); + BOOST_TEST_EQ( ec.location().line(), 73 ); } { @@ -134,7 +130,7 @@ int main() BOOST_TEST( ec.failed() ); BOOST_TEST( ec.has_location() ); - BOOST_TEST_EQ( ec.location().line(), 127 ); + BOOST_TEST_EQ( ec.location().line(), 123 ); } { @@ -182,7 +178,7 @@ int main() BOOST_TEST( ec.failed() ); BOOST_TEST( ec.has_location() ); - BOOST_TEST_EQ( ec.location().line(), 175 ); + BOOST_TEST_EQ( ec.location().line(), 171 ); } { @@ -209,8 +205,6 @@ int main() BOOST_TEST_EQ( ec.location().line(), 0 ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - { sys::error_code ec( e2inval ); @@ -281,7 +275,5 @@ int main() BOOST_TEST_EQ( ec.location().line(), 0 ); } -#endif - return boost::report_errors(); } diff --git a/test/ec_location_test3.cpp b/test/ec_location_test3.cpp index 4dcffb7..83d077e 100644 --- a/test/ec_location_test3.cpp +++ b/test/ec_location_test3.cpp @@ -57,8 +57,6 @@ int main() BOOST_TEST_EQ( ec3.location(), boost::source_location() ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - { std::error_code e2( val, std::generic_category() ); @@ -84,7 +82,5 @@ int main() BOOST_TEST_EQ( ec3.location(), boost::source_location() ); } -#endif - return boost::report_errors(); } diff --git a/test/ec_location_test4.cpp b/test/ec_location_test4.cpp index 4c60113..fc98412 100644 --- a/test/ec_location_test4.cpp +++ b/test/ec_location_test4.cpp @@ -59,8 +59,6 @@ int main() BOOST_TEST_EQ( ec.location(), boost::source_location() ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - { std::error_code e2( val, std::generic_category() ); @@ -87,7 +85,5 @@ int main() BOOST_TEST_EQ( ec.location(), boost::source_location() ); } -#endif - return boost::report_errors(); } diff --git a/test/ec_what_test.cpp b/test/ec_what_test.cpp index 35c1e03..3253d59 100644 --- a/test/ec_what_test.cpp +++ b/test/ec_what_test.cpp @@ -62,8 +62,6 @@ int main() BOOST_TEST_EQ( ec.what(), ec.message() + " [system:5 at " + loc.to_string() + "]" ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - { std::error_code ec; sys::error_code ec2( ec ); @@ -85,7 +83,5 @@ int main() BOOST_TEST_EQ( ec2.what(), ec2.message() + " [std:system:5]" ); } -#endif - return boost::report_errors(); } diff --git a/test/result_error_construct4.cpp b/test/result_error_construct4.cpp index d596813..4e29e37 100644 --- a/test/result_error_construct4.cpp +++ b/test/result_error_construct4.cpp @@ -30,8 +30,6 @@ int main() BOOST_TEST_EQ( r.error(), ec ); } -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - { auto ec = make_error_code( std::errc::invalid_argument ); @@ -43,7 +41,5 @@ int main() BOOST_TEST_EQ( r.error(), ec ); } -#endif - return boost::report_errors(); } diff --git a/test/std_interop_test.cpp b/test/std_interop_test.cpp index d8a3560..dde6c9e 100644 --- a/test/std_interop_test.cpp +++ b/test/std_interop_test.cpp @@ -9,23 +9,6 @@ // See library home page at http://www.boost.org/libs/system #include -#include -#include -#include - -#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 so interoperation will not be tested.\n"; -} - -#else - #include #include #include @@ -337,9 +320,6 @@ static void test_user2_category() int main() { - std::cout - << "The version of the C++ standard library being used" - " supports header 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 diff --git a/test/std_interop_test10.cpp b/test/std_interop_test10.cpp index b470ca1..d8175b0 100644 --- a/test/std_interop_test10.cpp +++ b/test/std_interop_test10.cpp @@ -4,16 +4,7 @@ #include #include -#include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include int main() @@ -62,5 +53,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test11.cpp b/test/std_interop_test11.cpp index 8374e1a..7285b9d 100644 --- a/test/std_interop_test11.cpp +++ b/test/std_interop_test11.cpp @@ -8,12 +8,7 @@ #include #include -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined" ) -int main() {} - -#elif defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50000 +#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50000 BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_LIBSTDCXX_VERSION < 50000" ) int main() {} diff --git a/test/std_interop_test12.cpp b/test/std_interop_test12.cpp index 36a66fc..c989c99 100644 --- a/test/std_interop_test12.cpp +++ b/test/std_interop_test12.cpp @@ -6,17 +6,8 @@ #include #include #include -#include #include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include enum my_errc @@ -123,5 +114,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test13.cpp b/test/std_interop_test13.cpp index 9f514b9..0e5054d 100644 --- a/test/std_interop_test13.cpp +++ b/test/std_interop_test13.cpp @@ -5,17 +5,8 @@ #include #include #include -#include #include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include class my_category_impl: public std::error_category @@ -73,5 +64,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test14.cpp b/test/std_interop_test14.cpp index d5b2dda..e5650f7 100644 --- a/test/std_interop_test14.cpp +++ b/test/std_interop_test14.cpp @@ -5,17 +5,8 @@ #include #include #include -#include #include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include class my_category_impl: public boost::system::error_category @@ -53,5 +44,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test15.cpp b/test/std_interop_test15.cpp index 92a6f1b..905be17 100644 --- a/test/std_interop_test15.cpp +++ b/test/std_interop_test15.cpp @@ -9,12 +9,7 @@ #include #include -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#elif defined(BOOST_SYSTEM_AVOID_STD_GENERIC_CATEGORY) +#if defined(BOOST_SYSTEM_AVOID_STD_GENERIC_CATEGORY) BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_SYSTEM_AVOID_STD_GENERIC_CATEGORY is defined" ) int main() {} diff --git a/test/std_interop_test16.cpp b/test/std_interop_test16.cpp index 6a67abe..2ba84ce 100644 --- a/test/std_interop_test16.cpp +++ b/test/std_interop_test16.cpp @@ -3,15 +3,6 @@ // http://www.boost.org/LICENSE_1_0.txt #include -#include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include #include #include @@ -53,5 +44,3 @@ int main() BOOST_TEST_CSTR_EQ( cat.name(), "user" ); return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test2.cpp b/test/std_interop_test2.cpp index 17f0ee7..eebcbfc 100644 --- a/test/std_interop_test2.cpp +++ b/test/std_interop_test2.cpp @@ -6,16 +6,7 @@ #include #include #include -#include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include void f1( std::error_code ec, int value, std::error_category const& category ) @@ -94,5 +85,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test3.cpp b/test/std_interop_test3.cpp index e4ace9e..d88fffd 100644 --- a/test/std_interop_test3.cpp +++ b/test/std_interop_test3.cpp @@ -4,16 +4,7 @@ #include #include -#include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include int main() @@ -75,5 +66,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test4.cpp b/test/std_interop_test4.cpp index ab74e3f..adcc53e 100644 --- a/test/std_interop_test4.cpp +++ b/test/std_interop_test4.cpp @@ -4,16 +4,7 @@ #include #include -#include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include void f( std::error_code& e1, std::error_code e2 ) @@ -85,5 +76,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test5.cpp b/test/std_interop_test5.cpp index a17ae21..8968f92 100644 --- a/test/std_interop_test5.cpp +++ b/test/std_interop_test5.cpp @@ -4,16 +4,7 @@ #include #include -#include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include int main() @@ -104,5 +95,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test6.cpp b/test/std_interop_test6.cpp index 8d691b5..add3dce 100644 --- a/test/std_interop_test6.cpp +++ b/test/std_interop_test6.cpp @@ -4,16 +4,7 @@ #include #include -#include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include int main() @@ -136,5 +127,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test7.cpp b/test/std_interop_test7.cpp index d0fbc8c..88b70d2 100644 --- a/test/std_interop_test7.cpp +++ b/test/std_interop_test7.cpp @@ -4,17 +4,8 @@ #include #include -#include #include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include int main() @@ -48,5 +39,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test8.cpp b/test/std_interop_test8.cpp index 2754a40..4981105 100644 --- a/test/std_interop_test8.cpp +++ b/test/std_interop_test8.cpp @@ -4,17 +4,8 @@ #include #include -#include #include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include enum my_errc @@ -78,5 +69,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_interop_test9.cpp b/test/std_interop_test9.cpp index b869792..7a9ec85 100644 --- a/test/std_interop_test9.cpp +++ b/test/std_interop_test9.cpp @@ -4,17 +4,8 @@ #include #include -#include #include #include - -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#else - #include enum my_errc @@ -73,5 +64,3 @@ int main() return boost::report_errors(); } - -#endif diff --git a/test/std_mismatch_test.cpp b/test/std_mismatch_test.cpp index 3a34bb2..9a0e3ce 100644 --- a/test/std_mismatch_test.cpp +++ b/test/std_mismatch_test.cpp @@ -12,24 +12,8 @@ # define _CRT_SECURE_NO_WARNINGS #include -#include -#include -#include - -#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 so interoperation will not be tested.\n"; -} - -#else - #include +#include #include #include #include @@ -53,14 +37,8 @@ static void test_system_category() int main() { - std::cout - << "The version of the C++ standard library being used" - " supports header so interoperation will be tested.\n"; - test_generic_category(); test_system_category(); return boost::report_errors(); } - -#endif diff --git a/test/std_single_instance_1.cpp b/test/std_single_instance_1.cpp index 6986146..c735afe 100644 --- a/test/std_single_instance_1.cpp +++ b/test/std_single_instance_1.cpp @@ -11,9 +11,6 @@ #endif #include - -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - #include namespace lib1 @@ -30,11 +27,3 @@ EXPORT std::error_code get_generic_code() } } // namespace lib1 - -#else - -EXPORT void lib1_f() -{ -} - -#endif diff --git a/test/std_single_instance_2.cpp b/test/std_single_instance_2.cpp index 960b3ca..f34cc4b 100644 --- a/test/std_single_instance_2.cpp +++ b/test/std_single_instance_2.cpp @@ -11,9 +11,6 @@ #endif #include - -#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - #include namespace lib2 @@ -30,11 +27,3 @@ EXPORT std::error_code get_generic_code() } } // namespace lib2 - -#else - -EXPORT void lib2_f() -{ -} - -#endif diff --git a/test/std_single_instance_test.cpp b/test/std_single_instance_test.cpp index c5fe710..dbc5e4b 100644 --- a/test/std_single_instance_test.cpp +++ b/test/std_single_instance_test.cpp @@ -6,12 +6,7 @@ #include #include -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) -int main() {} - -#elif defined(STD_SINGLE_INSTANCE_SHARED) && defined(__CYGWIN__) +#if defined(STD_SINGLE_INSTANCE_SHARED) && defined(__CYGWIN__) BOOST_PRAGMA_MESSAGE( "Skipping Windows/DLL test, __CYGWIN__" ) int main() {} diff --git a/test/win32_generic_test.cpp b/test/win32_generic_test.cpp index 507f518..647352f 100644 --- a/test/win32_generic_test.cpp +++ b/test/win32_generic_test.cpp @@ -6,12 +6,7 @@ #include #include -#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - -BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_SYSTEM_HAS_SYSTEM_ERROR is not defined" ) -int main() {} - -#elif !defined(BOOST_MSSTL_VERSION) || BOOST_MSSTL_VERSION < 140 +#if !defined(BOOST_MSSTL_VERSION) || BOOST_MSSTL_VERSION < 140 BOOST_PRAGMA_MESSAGE( "Skipping test, BOOST_MSSTL_VERSION is not defined or is less than 140" ) int main() {}