Define BOOST_IOSTREAMS_USE_DEPRECATED

This commit is contained in:
John Wiegley 2011-02-04 23:07:39 -05:00
parent 0f8e0251f4
commit 986afb43d0
2 changed files with 3 additions and 1 deletions

View file

@ -156,6 +156,7 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/intrusive_ptr.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/iostreams/write.hpp>
#define BOOST_IOSTREAMS_USE_DEPRECATED 1
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iterator/transform_iterator.hpp>
#include <boost/lexical_cast.hpp>

View file

@ -308,7 +308,8 @@ AC_CACHE_CHECK(
AC_LANG_PUSH(C++)
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <boost/iostreams/device/file_descriptor.hpp>
[[#define BOOST_IOSTREAMS_USE_DEPRECATED 1
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/version.hpp>]],
[[namespace io = boost::iostreams;