Replaced strerror_s with (less safe) strerror

libc++ (Xcode) doesn't seem to support it.
This commit is contained in:
Daniel Wolf 2016-04-13 10:26:10 +02:00
parent d8fbd3596b
commit 4941bff739
1 changed files with 1 additions and 3 deletions

View File

@ -166,9 +166,7 @@ void WaveFileReader::openFile() {
file.seekg(0);
}
} catch (const std::ifstream::failure&) {
std::array<char, 256> message;
strerror_s(message.data(), message.size(), errno);
throw runtime_error(message.data());
throw runtime_error(strerror(errno));
}
}