summaryrefslogtreecommitdiff
path: root/ace/OS_NS_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_string.cpp')
-rw-r--r--ace/OS_NS_string.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/ace/OS_NS_string.cpp b/ace/OS_NS_string.cpp
index 02226349e5e..8a98bd5c1d9 100644
--- a/ace/OS_NS_string.cpp
+++ b/ace/OS_NS_string.cpp
@@ -2,12 +2,13 @@
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_stdlib.h"
-#include "ace/ACE.h"
+
ACE_RCSID (ace,
OS_NS_string,
"$Id$")
+
#if !defined (ACE_HAS_INLINED_OSCALLS)
# include "ace/OS_NS_string.inl"
#endif /* ACE_HAS_INLINED_OS_CALLS */
@@ -152,23 +153,6 @@ ACE_OS::strecpy (wchar_t *s, const wchar_t *t)
}
#endif /* ACE_HAS_WCHAR */
-char *
-ACE_OS::strerror (int errnum)
-{
- if (ACE::is_sock_error (errnum))
- {
- const ACE_TCHAR *errortext = ACE::sock_error (errnum);
- static char ret_errortext[128];
- ACE_OS::strncpy (ret_errortext, ACE_TEXT_ALWAYS_CHAR(errortext), sizeof(ret_errortext));
- return ret_errortext;
- }
-#if defined (ACE_LACKS_STRERROR)
- return ACE_OS::strerror_emulation (errnum);
-#else /* ACE_LACKS_STRERROR */
- return ::strerror (errnum);
-#endif /* ACE_LACKS_STRERROR */
-}
-
#if defined (ACE_LACKS_STRERROR)
/**
* Just returns "Unknown Error" all the time.