summaryrefslogtreecommitdiff
path: root/ace/SPIPE_Addr.i
diff options
context:
space:
mode:
Diffstat (limited to 'ace/SPIPE_Addr.i')
-rw-r--r--ace/SPIPE_Addr.i13
1 files changed, 12 insertions, 1 deletions
diff --git a/ace/SPIPE_Addr.i b/ace/SPIPE_Addr.i
index f588a1702b7..527c1bf2322 100644
--- a/ace/SPIPE_Addr.i
+++ b/ace/SPIPE_Addr.i
@@ -7,12 +7,23 @@
// Transform the current address into string format.
+#if defined (UNICODE)
ACE_INLINE int
-ACE_SPIPE_Addr::addr_to_string (LPTSTR s, size_t len) const
+ACE_SPIPE_Addr::addr_to_string (wchar_t *s, size_t len) const
{
ACE_OS::strncpy (s, this->SPIPE_addr_.rendezvous_, len);
return 0;
}
+#endif /* UNICODE */
+
+ACE_INLINE int
+ACE_SPIPE_Addr::addr_to_string (char *s, size_t len) const
+{
+ ACE_OS::strncpy (s,
+ ACE_MULTIBYTE_STRING (this->SPIPE_addr_.rendezvous_),
+ len);
+ return 0;
+}
// Return the address.