diff options
Diffstat (limited to 'libbutl/sha256.cxx')
-rw-r--r-- | libbutl/sha256.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbutl/sha256.cxx b/libbutl/sha256.cxx index 2528693..8a34402 100644 --- a/libbutl/sha256.cxx +++ b/libbutl/sha256.cxx @@ -34,6 +34,7 @@ extern "C" #include <cstdint> #include <cctype> // isxdigit() +#include <istream> #include <stdexcept> // invalid_argument #endif @@ -54,10 +55,9 @@ import std.core; #endif import butl.utility; // *case() -import butl.fdstream; #else #include <libbutl/utility.mxx> -#include <libbutl/fdstream.mxx> +#include <libbutl/bufstreambuf.hxx> #endif using namespace std; @@ -85,12 +85,12 @@ namespace butl } void sha256:: - append (ifdstream& is) + append (istream& is) { - fdbuf* buf (dynamic_cast<fdbuf*> (is.rdbuf ())); + bufstreambuf* buf (dynamic_cast<bufstreambuf*> (is.rdbuf ())); assert (buf != nullptr); - while (is.peek () != ifdstream::traits_type::eof () && is.good ()) + while (is.peek () != istream::traits_type::eof () && is.good ()) { size_t n (buf->egptr () - buf->gptr ()); append (buf->gptr (), n); |