From f37a72b0d1b43a615df0cc5744f15a48b152d8be Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 18 Jul 2022 11:55:00 -0700 Subject: [PATCH] lib: fix gcc deprecation warnings --- lib/file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/file.cpp b/lib/file.cpp index e9c7c89..c1e94ab 100644 --- a/lib/file.cpp +++ b/lib/file.cpp @@ -6,7 +6,7 @@ namespace si { bool File::Open(const char *c, Mode mode) { - std::ios::open_mode m = std::ios::binary; + std::ios::openmode m = std::ios::binary; if (mode == Read) { m |= std::ios::in; @@ -55,7 +55,7 @@ size_t File::pos() void File::seek(size_t p, SeekMode s) { - std::ios::seek_dir d; + std::ios::seekdir d; switch (s) { case SeekStart: