// Avoid spurious VC++ warnings
# define _CRT_SECURE_NO_WARNINGS
+#include <boost/system/error_code.hpp>
#include <boost/config.hpp>
+#include <boost/config/pragma_message.hpp>
#include <iostream>
-#if defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR)
+#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 <boost/system/error_code.hpp>
#include <boost/core/lightweight_test.hpp>
#include <system_error>
#include <cerrno>