diff --git a/src/drivers/win/main.cpp b/src/drivers/win/main.cpp index 92044938..2592613a 100644 --- a/src/drivers/win/main.cpp +++ b/src/drivers/win/main.cpp @@ -1242,7 +1242,7 @@ std::fstream* FCEUD_UTF8_fstream(const char *n, const char *m) FCEUD_MakePathDirs(n); } - std::ios_base::open_mode mode = std::ios_base::binary; + std::ios_base::openmode mode = std::ios_base::binary; if(!strcmp(m,"r")) mode |= std::ios_base::in; else if(!strcmp(m,"w")) diff --git a/src/utils/memorystream.h b/src/utils/memorystream.h index 98e8f48a..fcc76620 100644 --- a/src/utils/memorystream.h +++ b/src/utils/memorystream.h @@ -1,6 +1,7 @@ #include #include #include +#include template class memory_streambuf: public std::streambuf { @@ -154,7 +155,7 @@ private: void expand(size_t upto) { if(!myBuf && !usevec) - throw new std::exception("memory_streambuf is not expandable"); + throw new std::runtime_error("memory_streambuf is not expandable"); size_t newcapacity; if(upto == -1)