lib: fix gcc deprecation warnings

This commit is contained in:
itsmattkc 2022-07-18 11:55:00 -07:00
parent 8f19097c69
commit f37a72b0d1

View file

@ -6,7 +6,7 @@ namespace si {
bool File::Open(const char *c, Mode mode) 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) { if (mode == Read) {
m |= std::ios::in; m |= std::ios::in;
@ -55,7 +55,7 @@ size_t File::pos()
void File::seek(size_t p, SeekMode s) void File::seek(size_t p, SeekMode s)
{ {
std::ios::seek_dir d; std::ios::seekdir d;
switch (s) { switch (s) {
case SeekStart: case SeekStart: