Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / spirit / test / qi / range_run.cpp
index 930e14c..dc90b79 100644 (file)
@@ -8,11 +8,15 @@
 #include <cctype>
 #include <boost/detail/lightweight_test.hpp>
 #include <boost/spirit/home/support/char_set/range_run.hpp>
-#include <boost/random.hpp>
 #include <boost/dynamic_bitset.hpp>
 #include <boost/integer_traits.hpp>
+#if defined(_MSC_VER) && _MSC_VER < 1700
+# pragma warning(disable: 4127) // conditional expression is constant
+#endif
+#include <boost/random.hpp>
 
-#if defined(BOOST_MSVC)
+#if defined(_MSC_VER)
+# pragma warning(disable: 4127) // conditional expression is constant
 # pragma warning(disable: 4800) // 'int' : forcing value to bool 'true' or 'false' warning
 #endif