summaryrefslogtreecommitdiff
path: root/ace/OS_NS_string.inl
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-16 21:19:02 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-16 21:19:02 +0000
commit40fdc8a404e75ab03b68cc62e9987cf208fd8c30 (patch)
tree37d9c4d3abe4aefd8a34ed797883dd2cd4862ca7 /ace/OS_NS_string.inl
parentc254b281f1b9a4ca19dd0c3ee73a0654a7718909 (diff)
downloadATCD-typecode-overhaul.tar.gz
This commit was manufactured by cvs2svn to create branchtypecode-overhaul
'typecode-overhaul'.
Diffstat (limited to 'ace/OS_NS_string.inl')
-rw-r--r--ace/OS_NS_string.inl10
1 files changed, 10 insertions, 0 deletions
diff --git a/ace/OS_NS_string.inl b/ace/OS_NS_string.inl
index cb3ee4ec3c6..13168942e68 100644
--- a/ace/OS_NS_string.inl
+++ b/ace/OS_NS_string.inl
@@ -166,6 +166,16 @@ ACE_OS::strcspn (const wchar_t *s, const wchar_t *reject)
}
#endif /* ACE_HAS_WCHAR */
+ACE_INLINE char *
+ACE_OS::strerror (int errnum)
+{
+#if defined (ACE_LACKS_STRERROR)
+ return ACE_OS::strerror_emulation (errnum);
+#else /* ACE_LACKS_STRERROR */
+ return ::strerror (errnum);
+#endif /* ACE_LACKS_STRERROR */
+}
+
ACE_INLINE size_t
ACE_OS::strlen (const char *s)
{