summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_stdlib.inl
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-05-29 16:12:07 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-05-29 16:12:07 +0000
commit2cb9eb27375c5022d2eb0a77fbea78f9650df922 (patch)
treeb7389a0b4746c44e5d1bc5b10aa92022a10debde /ACE/ace/OS_NS_stdlib.inl
parent66cbf21b7b9ff9efa894b50f9c9de4fd93174b25 (diff)
downloadATCD-2cb9eb27375c5022d2eb0a77fbea78f9650df922.tar.gz
ChangeLogTag: Thu May 29 16:08:01 UTC 2008 Vladimir Zykov <vzykov@prismtech.com>
Diffstat (limited to 'ACE/ace/OS_NS_stdlib.inl')
-rw-r--r--ACE/ace/OS_NS_stdlib.inl25
1 files changed, 24 insertions, 1 deletions
diff --git a/ACE/ace/OS_NS_stdlib.inl b/ACE/ace/OS_NS_stdlib.inl
index 2896fef63d4..3ed7b606869 100644
--- a/ACE/ace/OS_NS_stdlib.inl
+++ b/ACE/ace/OS_NS_stdlib.inl
@@ -6,7 +6,6 @@
#include "ace/Object_Manager_Base.h"
#include "ace/OS_NS_string.h"
#include "ace/Global_Macros.h"
-#include "ace/Basic_Types.h" /* intptr_t */
#include "ace/os_include/os_errno.h"
#include "ace/os_include/os_search.h"
@@ -460,6 +459,30 @@ ACE_OS::strtoul (const wchar_t *s, wchar_t **ptr, int base)
}
#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOUL */
+ACE_INLINE ACE_UINT64
+ACE_OS::strtoull (const char *s, char **ptr, int base)
+{
+#if defined (ACE_LACKS_STRTOULL)
+ return ACE_OS::strtoull_emulation (s, ptr, base);
+#elif defined (ACE_WIN32)
+ return ::_strtoui64 (s, ptr, base);
+#else
+ return ::strtoull (s, ptr, base);
+#endif /* ACE_LACKS_STRTOULL */
+}
+
+#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOULL)
+ACE_INLINE ACE_UINT64
+ACE_OS::strtoull (const wchar_t *s, wchar_t **ptr, int base)
+{
+#if defined (ACE_WIN32)
+ return ::_wcstoui64 (s, ptr, base);
+#else
+ return ACE_WCHAR_STD_NAMESPACE::wcstoull (s, ptr, base);
+#endif /* ACE_WIN32 */
+}
+#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOULL */
+
ACE_INLINE int
ACE_OS::system (const ACE_TCHAR *s)
{