mirror of
https://github.com/boostorg/convert.git
synced 2026-01-19 04:02:18 +00:00
14APR-11:56 disable compilation on non-supported platforms
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
// Use, modification and distribution are subject to the Boost Software License,
|
||||
// Version 1.0. See http://www.boost.org/LICENSE_1_0.txt.
|
||||
|
||||
#include "../test/test.hpp"
|
||||
|
||||
#if defined(BOOST_CONVERT_IS_NOT_SUPPORTED)
|
||||
int main(int, char const* []) { return 0; }
|
||||
#else
|
||||
|
||||
#include <boost/convert.hpp>
|
||||
#include <boost/convert/lexical_cast.hpp>
|
||||
|
||||
@@ -99,3 +105,5 @@ main(int, char const* [])
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
#define BOOST_CONVERT_TEST_HPP
|
||||
|
||||
#include <boost/convert/detail/config.hpp>
|
||||
|
||||
#if defined(BOOST_CONVERT_IS_NOT_SUPPORTED)
|
||||
#else
|
||||
|
||||
#include <boost/make_default.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <string>
|
||||
@@ -186,3 +190,4 @@ namespace test
|
||||
}
|
||||
|
||||
#endif // BOOST_CONVERT_TEST_HPP
|
||||
#endif // BOOST_CONVERT_TEST_HPP
|
||||
|
||||
Reference in New Issue
Block a user