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);
|
file.seekg(0);
|
||||||
}
|
}
|
||||||
} catch (const std::ifstream::failure&) {
|
} catch (const std::ifstream::failure&) {
|
||||||
std::array<char, 256> message;
|
throw runtime_error(strerror(errno));
|
||||||
strerror_s(message.data(), message.size(), errno);
|
|
||||||
throw runtime_error(message.data());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue