forked from boostorg/beast
Update Boost.WinAPI usage to the new location and namespace.
This commit is contained in:
1 parent
645fdb6581
commit
ab2a225a9a
5 files changed
+108
-107
No files matched your search
@@ -18,8 +18,8 @@
|
||||
#include <string>
|
||||
|
||||
#ifdef BOOST_WINDOWS
|
||||
#include <boost/detail/winapi/basic_types.hpp>
|
||||
#include <boost/detail/winapi/debugapi.hpp>
|
||||
#include <boost/winapi/basic_types.hpp>
|
||||
#include <boost/winapi/debugapi.hpp>
|
||||
#endif
|
||||
|
||||
namespace boost {
|
||||
@@ -45,14 +45,14 @@ class dstream_buf
|
||||
void write(char const* s)
|
||||
{
|
||||
if(dbg_)
|
||||
boost::detail::winapi::OutputDebugStringA(s);
|
||||
boost::winapi::OutputDebugStringA(s);
|
||||
os_ << s;
|
||||
}
|
||||
|
||||
void write(wchar_t const* s)
|
||||
{
|
||||
if(dbg_)
|
||||
boost::detail::winapi::OutputDebugStringW(s);
|
||||
boost::winapi::OutputDebugStringW(s);
|
||||
os_ << s;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
explicit
|
||||
dstream_buf(ostream& os)
|
||||
: os_(os)
|
||||
, dbg_(boost::detail::winapi::IsDebuggerPresent() != 0)
|
||||
, dbg_(boost::winapi::IsDebuggerPresent() != 0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user