Replaced strerror_s with (less safe) strerror
libc++ (Xcode) doesn't seem to support it.
This commit is contained in:
parent
d8fbd3596b
commit
4941bff739
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue