summaryrefslogtreecommitdiff
path: root/ACEXML
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-10-05 03:31:12 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-10-05 03:31:12 +0000
commit99ca2ef26382fafe5359a5880eb2b0e4d7aabaeb (patch)
tree940bac9e410e50beb83c2ca3b0b44dc36e1e21b7 /ACEXML
parentf72fcee1e876501b9936fe1dc9ccfeba42885b6a (diff)
downloadATCD-99ca2ef26382fafe5359a5880eb2b0e4d7aabaeb.tar.gz
ChangeLogTag: Fri Oct 04 22:24:23 2002 Krishnakumar B <kitty@cs.wustl.edu>
Diffstat (limited to 'ACEXML')
-rw-r--r--ACEXML/common/URL_Addr.cpp8
-rw-r--r--ACEXML/common/URL_Addr.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/ACEXML/common/URL_Addr.cpp b/ACEXML/common/URL_Addr.cpp
index b5f156d5b91..08d5da0c376 100644
--- a/ACEXML/common/URL_Addr.cpp
+++ b/ACEXML/common/URL_Addr.cpp
@@ -59,6 +59,14 @@ ACEXML_URL_Addr::addr_to_string (int ipaddr_format)
return this->addr_string_;
}
+#if defined (ACE_USES_WCHAR)
+int
+ACEXML_URL_Addr::string_to_addr (const char* s)
+{
+ return this->string_to_addr (ACE_TEXT_CHAR_TO_TCHAR (s));
+}
+#endif /* ACE_USES_WCHAR */
+
int
ACEXML_URL_Addr::string_to_addr (const ACEXML_Char* s)
{
diff --git a/ACEXML/common/URL_Addr.h b/ACEXML/common/URL_Addr.h
index bd24c1f06c3..fec3c560526 100644
--- a/ACEXML/common/URL_Addr.h
+++ b/ACEXML/common/URL_Addr.h
@@ -55,6 +55,11 @@ public:
*/
virtual int string_to_addr (const ACEXML_Char* address);
+ // Function to shut up Borland C++
+#if defined (ACE_USES_WCHAR)
+ virtual int string_to_addr (const char* address);
+#endif
+
/**
* Transform the current <ACE_INET_Addr> address into string format. If
* <ipaddr_format> is non-0 this produces