From 4941bff739bf89457025c5791724b70645f4224b Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Wed, 13 Apr 2016 10:26:10 +0200 Subject: [PATCH] Replaced strerror_s with (less safe) strerror libc++ (Xcode) doesn't seem to support it. --- src/audio/WaveFileReader.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/audio/WaveFileReader.cpp b/src/audio/WaveFileReader.cpp index 24efb04..269879e 100644 --- a/src/audio/WaveFileReader.cpp +++ b/src/audio/WaveFileReader.cpp @@ -166,9 +166,7 @@ void WaveFileReader::openFile() { file.seekg(0); } } catch (const std::ifstream::failure&) { - std::array message; - strerror_s(message.data(), message.size(), errno); - throw runtime_error(message.data()); + throw runtime_error(strerror(errno)); } }