summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2objc')
-rw-r--r--cpp/src/slice2objc/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2objc/Gen.cpp b/cpp/src/slice2objc/Gen.cpp
index b4696ee3574..d3c0327a09e 100644
--- a/cpp/src/slice2objc/Gen.cpp
+++ b/cpp/src/slice2objc/Gen.cpp
@@ -7,7 +7,7 @@
//
// **********************************************************************
-#include <IceUtil/DisableWarnings.h>
+#include <IceUtil/StringUtil.h>
#include <IceUtil/Functional.h>
#include "Gen.h"
#include <limits>
@@ -696,7 +696,7 @@ Slice::Gen::Gen(const string& name, const string& base, const string& include, c
if(!_H)
{
ostringstream os;
- os << "cannot open `" << fileH << "': " << strerror(errno);
+ os << "cannot open `" << fileH << "': " << IceUtilInternal::errorToString(errno);
throw FileException(__FILE__, __LINE__, os.str());
}
FileTracker::instance()->addFile(fileH);
@@ -707,7 +707,7 @@ Slice::Gen::Gen(const string& name, const string& base, const string& include, c
if(!_M)
{
ostringstream os;
- os << "cannot open `" << fileM << "': " << strerror(errno);
+ os << "cannot open `" << fileM << "': " << IceUtilInternal::errorToString(errno);
throw FileException(__FILE__, __LINE__, os.str());
}
FileTracker::instance()->addFile(fileM);