diff options
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 2c00b5fe5f8..a6b09ad2030 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -7,7 +7,6 @@ // // ********************************************************************** -#include <IceUtil/DisableWarnings.h> #include <IceUtil/Functional.h> #include <IceUtil/StringUtil.h> #include <IceUtil/FileUtil.h> @@ -1973,7 +1972,7 @@ Slice::Gen::Gen(const string& base, const vector<string>& includePaths, const st if(!_out) { ostringstream os; - os << "cannot open `" << file << "': " << strerror(errno); + os << "cannot open `" << file << "': " << IceUtilInternal::errorToString(errno); throw FileException(__FILE__, __LINE__, os.str()); } FileTracker::instance()->addFile(file); @@ -1999,7 +1998,7 @@ Slice::Gen::Gen(const string& base, const vector<string>& includePaths, const st if(!_impl) { ostringstream os; - os << ": cannot open `" << fileImpl << "': " << strerror(errno); + os << ": cannot open `" << fileImpl << "': " << IceUtilInternal::errorToString(errno); throw FileException(__FILE__, __LINE__, os.str()); } |