diff --git a/deps/ox/src/ox/std/reader.cpp b/deps/ox/src/ox/std/reader.cpp index ac5098ed..7733c2b9 100644 --- a/deps/ox/src/ox/std/reader.cpp +++ b/deps/ox/src/ox/std/reader.cpp @@ -19,13 +19,13 @@ namespace ox { constexpr std::ios_base::seekdir sdMap(ox::ios_base::seekdir in) noexcept { switch (in) { case ox::ios_base::beg: - return std::ios_base::seekdir::beg; + return std::ios_base::beg; case ox::ios_base::end: - return std::ios_base::seekdir::end; + return std::ios_base::end; case ox::ios_base::cur: - return std::ios_base::seekdir::cur; + return std::ios_base::cur; } - return std::ios_base::seekdir::beg; + return std::ios_base::beg; } ox::Result StreamReader::peek() const noexcept { @@ -48,7 +48,7 @@ ox::Result StreamReader::read(char *v, std::size_t cnt) noexcept { ox::Error StreamReader::seekg(std::size_t p) noexcept { try { - m_strm.seekg(static_cast(p), std::ios_base::seekdir::cur); + m_strm.seekg(static_cast(p), std::ios_base::cur); } catch (std::exception const&) { return OxError(1, "seekg failed"); }